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

[WIP] Array-based List type #2154

Draft
wants to merge 3 commits into
base: fable3
Choose a base branch
from
Draft

[WIP] Array-based List type #2154

wants to merge 3 commits into from

Conversation

ncave
Copy link
Collaborator

@ncave ncave commented Sep 9, 2020

  • Faster than F# linked list, when micro-benchmarked.
  • Overall, still slower in larger tests (FCS-JS) than using JS linked list.

@ncave
Copy link
Collaborator Author

ncave commented Sep 11, 2020

Rebased from #2156.

@alfonsogarciacaro
Copy link
Member

This is still marked as WIP, so you want to merge it?

@ncave
Copy link
Collaborator Author

ncave commented Sep 12, 2020

@alfonsogarciacaro It's ready, but it does result in about 10% perf impact, so further optimizations are needed. We can keep it on the back-burner for now.

@alfonsogarciacaro
Copy link
Member

alfonsogarciacaro commented Nov 19, 2020

Do you think it would help if we allocated a few slots in advance and increase it as we add more elements? (I think System.Generic.Collections.List does this, although maybe the JS engine does the same internally)

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