Skip to content

PERF: do not instantiate IndexEngine for standard lookup over RangeIndex #27119

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

Merged
merged 2 commits into from
Jun 30, 2019

Conversation

toobaz
Copy link
Member

@toobaz toobaz commented Jun 29, 2019

The pytest.raises(AttributeError, ...) are somewhat superfluous in that they test a limit of the implementation, rather than a guarantee of the API... but they still make the test more robust.

@toobaz toobaz force-pushed the rangeindex_no_engine_16685 branch from bc404ba to 493d61f Compare June 29, 2019 14:21
@toobaz toobaz force-pushed the rangeindex_no_engine_16685 branch 4 times, most recently from 63cd6ba to 261f43a Compare June 29, 2019 15:05
@toobaz toobaz force-pushed the rangeindex_no_engine_16685 branch from 261f43a to 3b0b781 Compare June 29, 2019 17:08
@toobaz toobaz force-pushed the rangeindex_no_engine_16685 branch from 3b0b781 to e9f6f6b Compare June 29, 2019 21:37
@pep8speaks
Copy link

Hello @toobaz! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 355:80: E501 line too long (95 > 79 characters)
Line 361:80: E501 line too long (92 > 79 characters)

@toobaz
Copy link
Member Author

toobaz commented Jun 29, 2019

All green. I'm afraid pep8speaks is resenting the heat.

@jreback jreback added Indexing Related to indexing on series/frames, not to indexes themselves Performance Memory or execution speed performance labels Jun 30, 2019
@jreback jreback added this to the 0.25.0 milestone Jun 30, 2019
@jreback jreback merged commit a173cac into pandas-dev:master Jun 30, 2019
@jreback
Copy link
Contributor

jreback commented Jun 30, 2019

thanks @toobaz nice patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PERF: Unnecessary hash table with RangeIndex
3 participants