Fable
Fable copied to clipboard
[WIP] Array-based List type
- Faster than F# linked list, when micro-benchmarked.
- Overall, still slower in larger tests (FCS-JS) than using JS linked list.
Rebased from #2156.
This is still marked as WIP, so you want to merge it?
@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.
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)