Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedup EnsoRootNode.buildFrameDescriptor #10843

Closed
Akirathan opened this issue Aug 19, 2024 · 7 comments · Fixed by #10906 or #10996
Closed

Speedup EnsoRootNode.buildFrameDescriptor #10843

Akirathan opened this issue Aug 19, 2024 · 7 comments · Fixed by #10906 or #10996

Comments

@Akirathan
Copy link
Member

Akirathan commented Aug 19, 2024

Follow-up of #10837 and #10729, part of #10833.

private static FrameDescriptor buildFrameDescriptor(LocalScope localScope) {
var descriptorBuilder = FrameDescriptor.newBuilder();
descriptorBuilder.addSlot(FrameSlotKind.Object, LocalScope.monadicStateSlotName(), null);
for (var definition : ScalaConversions.asJava(localScope.scope().allDefinitions())) {
descriptorBuilder.addSlot(FrameSlotKind.Illegal, definition.symbol(), null);
}
descriptorBuilder.defaultValue(DataflowError.UNINITIALIZED);
var frameDescriptor = descriptorBuilder.build();
return frameDescriptor;
}

still uses LocalScope.scope().allDefinitions() that forces deserialization of alias analysis metadata for every EnsoRootNode created, that is created for at least every Enso method. Let's remove the dependency on alias metadata from EnsoRootNode. Optimally, we should use only FramePointer metadata for that.

Further notes in #10837 (comment)

@JaroslavTulach
Copy link
Member

Looks like FramePointer will not be enough. I need to associate result of allDefinitions() with every IR that contains AliasMetadata.RootScope I think now.

@enso-bot
Copy link

enso-bot bot commented Aug 31, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-08-30):

Progress: .

@enso-bot
Copy link

enso-bot bot commented Sep 2, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-09-01):

Progress: .

  • debugging IR: a41aab6
  • testFnAsADefaultValue passes: fb37b39 It should be finished by 2024-09-05.

@enso-bot
Copy link

enso-bot bot commented Sep 3, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-09-02):

Progress: .

Discord
Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.
GitHub
James: Tuning S3_File doc comments. #10832 James: Wip/jd/fast excel read #10877 James: Update what needs to be re-signed. #10922 James: Small tweaks from QA #10941 Radosław: Fix Count_Distinct in S...

@enso-bot
Copy link

enso-bot bot commented Sep 4, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-09-03):

Progress: .

@enso-bot
Copy link

enso-bot bot commented Sep 5, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-09-04):

Progress: .

@enso-bot
Copy link

enso-bot bot commented Sep 6, 2024

Jaroslav Tulach reports a new STANDUP for yesterday (2024-09-05):

Progress: .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🟢 Accepted
2 participants