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

Map research #11

Merged
merged 6 commits into from
Nov 17, 2023
Merged

Map research #11

merged 6 commits into from
Nov 17, 2023

Conversation

cnuernber
Copy link
Owner

Faster lazy caching implementations of map and various details around chunking.

Turns out clojure.core/map is really inefficient when the sequence isn't itself chunked or what there are more than one collection passed in. The implementation in lazy-caching is many times faster I think in every situation - especially the latest versions which always do chunking but chunking is such a minefield - you are better off going with lazy-noncaching IMO as it is still element-by-element processing in most situations.

That being said it is important that contains to provide chunking seqs when possible to play well with the various functions in clojure core.

@cnuernber cnuernber merged commit bc7d380 into master Nov 17, 2023
@cnuernber cnuernber deleted the map-research branch November 17, 2023 15:09
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