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

Seq: reimplement seq_to_list and seq_of_list by casting #3203

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

mtzguido
Copy link
Member

@mtzguido mtzguido commented Feb 2, 2024

This PR makes the implementations of seq_to_list and seq_of_list much faster (constant time as opposed to linear). There is a bit of refactoring and some new lemmas needed, but everything including everest seems to work (I'll post PRs for subprojects shortly).

For code that makes heavy use of sequences (at the value level) this can make a big difference. Apparently for MLS* it means a performance gain of 50%.

cc @msprotz

@mtzguido mtzguido merged commit 58c915a into FStarLang:master Feb 2, 2024
2 checks passed
@mtzguido mtzguido deleted the seq branch February 2, 2024 16:35
tahina-pro added a commit to project-everest/everparse that referenced this pull request Feb 27, 2024
tahina-pro added a commit to project-everest/everparse that referenced this pull request Mar 4, 2024
tahina-pro added a commit to tahina-pro/quackyducky that referenced this pull request Oct 25, 2024
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