-
Notifications
You must be signed in to change notification settings - Fork 4
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
(Truffle optimizations) Final truffle optimizations #379
Conversation
alexzerntev
commented
Mar 10, 2024
•
edited
Loading
edited
- Separated pure records from records with duplicate keys
- Made more PE friendly nullables and tryables
- Fixed record operations to have a specialization instance per field per operation (as truffle docs suggest)
- Added toString() overrides for better debugging
- Merged TreeMap implementation to get and put with one walk
- Added missing TruffleBoundaries
- Removed language and context storage from runtime objects. It can be accessed from inside the nodes (also made it cached)
6ba4685
to
bd29f6c
Compare
updateDistinctKeys(); | ||
} | ||
|
||
private void updateDistinctKeys() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add @TruffleBoundary
Merging into initial PR (#352) . The review will be done here. |
|
||
// Static properties for dynamic object storage types | ||
public class PropertyType { | ||
public static final byte INT_TYPE = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To check for short and byte
return RawTypesGen.expectPureRecord(executeGeneric(virtualFrame)); | ||
} | ||
|
||
public DuplicateKeyRecord executeConcatRecord(VirtualFrame virtualFrame) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did review it together.