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

Interesting candidate predicates for native compilation #2369

Open
triska opened this issue Mar 22, 2024 · 1 comment
Open

Interesting candidate predicates for native compilation #2369

triska opened this issue Mar 22, 2024 · 1 comment

Comments

@triska
Copy link
Contributor

triska commented Mar 22, 2024

With great interest, I follow the recent native compilation work of @aarroyoc, available in the cranelift-jit branch.

What are interesting candidate predicates for native compilation, where often a lot of time is spent and which would likely help improve performance measurably in many applications? Personally, I think the following predicates are suitable candidates for trying and evolving this new feature:

  1. the predicates of library(assoc), especially get_assoc/3, and insert/5 and the predicates it uses. Since library(assoc) is heavily used by library(clpb) with very large AVL trees, this would likely measurably improve performance on various benchmarks such as the one in Where is the time spent? #207.
  2. several rather self-contained and frequently needed predicates in library(clpz), such as
  3. format_cell//1 in library(format).

I hope this is useful. Thank you a lot @aarroyoc for working on this feature, I think this will attract even more attention to Scryer!

@aarroyoc
Copy link
Sponsor Contributor

This is a good list. Thanks for creating it! I'll keep it as a reminder of the features I need to implement to make them faster.

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

No branches or pull requests

2 participants