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

Improve performance of eachindex(a, b). Fixes #25497 #25503

Merged
merged 1 commit into from
Jan 11, 2018

Conversation

timholy
Copy link
Member

@timholy timholy commented Jan 11, 2018

On my machine this gets #25497 from ~8ns to ~3ns. Prior to #25108 it was around 2ns, but I don't think we can fully close the gap, except with @inbounds and putting the test inside @boundscheck (which technically, it's not).

@ararslan ararslan added performance Must go faster collections Data structures holding multiple items, e.g. sets labels Jan 11, 2018
@tkoolen
Copy link
Contributor

tkoolen commented Jan 11, 2018

No allocations either. Thank you!

@JeffBezanson JeffBezanson merged commit 931dc51 into master Jan 11, 2018
@JeffBezanson JeffBezanson deleted the teh/fix_25497 branch January 11, 2018 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
collections Data structures holding multiple items, e.g. sets performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants