Skip to content

Conversation

@lewurm
Copy link

@lewurm lewurm commented Jan 13, 2014

This shows how to use Truffle with your Presto example. Some highlights:

  • The Truffle DSL is used to add specializations.
  • In order to make accesses to the Slice datastructure fast, we had to "trufflize" it a bit. For example, "Slice.getLong(int)" contains a check which, if it it fails, creates an IOOB-exception. This is quite costly and rare, thus we want to teach Truffle not to include it in a compilation (CompilerDirectives.transferToInterpreter()").
  • speedup is about 2x compared to the PureJava version.

Feel free to ask if you have any questions!

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.

1 participant