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

precompute prng lxm constants #1730

Merged
merged 5 commits into from
Nov 6, 2024
Merged

precompute prng lxm constants #1730

merged 5 commits into from
Nov 6, 2024

Conversation

TyOverby
Copy link
Collaborator

@TyOverby TyOverby commented Nov 6, 2024

caml_int64_of_string is quite slow. Move the call from the body of caml_lxm_next to a constant.

Making this change resulted in a 2x speedup of some code that calls caml_lxm_next in a tight loop.

@TyOverby TyOverby changed the title precompute lxm constants precompute prng lxm constants Nov 6, 2024
@hhugo hhugo merged commit 3fa88ec into master Nov 6, 2024
20 checks passed
@hhugo hhugo deleted the precompute-lxm-constants branch November 6, 2024 21:53
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