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

Remove toPosInt(Array::length) #2

Merged
merged 1 commit into from
Nov 19, 2014
Merged

Conversation

RReverser
Copy link
Contributor

Array length always matches toPosInt requirements (integer number >= 0) and removing conversion speeds up iterators up to 80% (from 37,660 ops/sec to 68,312 ops/sec for arrays on my machine).

Array length always matches `toPosInt` requirements (integer number >= 0) and removing conversion speeds up iterators up to 80% (from 37,660 ops/sec to 68,312 ops/sec  for arrays on my machine).
@medikoo
Copy link
Owner

medikoo commented Nov 19, 2014

Thanks, makes sense as this.__list__ is considered internal. Merged.

It'll be published in few minutes

medikoo added a commit that referenced this pull request Nov 19, 2014
Remove toPosInt(Array::length)
@medikoo medikoo merged commit 61e4947 into medikoo:master Nov 19, 2014
@medikoo
Copy link
Owner

medikoo commented Nov 19, 2014

Published with v0.1.2

@RReverser
Copy link
Contributor Author

Thanks!

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.

None yet

2 participants