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

(Truffle optimizations) Final truffle optimizations #379

Merged
merged 78 commits into from
Mar 29, 2024

Conversation

alexzerntev
Copy link
Contributor

@alexzerntev alexzerntev commented Mar 10, 2024

  • 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)

@alexzerntev alexzerntev force-pushed the experimenting-with-record-concatanation branch from 6ba4685 to bd29f6c Compare March 17, 2024 15:52
updateDistinctKeys();
}

private void updateDistinctKeys() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add @TruffleBoundary

@alexzerntev
Copy link
Contributor Author

alexzerntev commented Mar 20, 2024

Merging into initial PR (#352) . The review will be done here.

@alexzerntev alexzerntev changed the base branch from improve-record-performance to main March 22, 2024 11:03
@alexzerntev alexzerntev changed the base branch from main to RD-10562-implement-osr-for-iterators March 22, 2024 11:05
@alexzerntev alexzerntev changed the base branch from RD-10562-implement-osr-for-iterators to main March 22, 2024 11:05
@alexzerntev alexzerntev changed the title (Truffle optimizations) Experimenting with record concatanation (Truffle optimizations) Final truffle optimizations Mar 22, 2024

// Static properties for dynamic object storage types
public class PropertyType {
public static final byte INT_TYPE = 0;
Copy link
Contributor Author

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)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

Copy link
Collaborator

@bgaidioz bgaidioz left a 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.

@alexzerntev alexzerntev merged commit c885796 into main Mar 29, 2024
12 checks passed
@alexzerntev alexzerntev deleted the experimenting-with-record-concatanation branch March 29, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants