-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: HDFStore __unicode__ method #16666
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually run the asv and show the output
@@ -90,6 +90,15 @@ def time_query_store_table(self): | |||
stop = self.df2.index[15000] | |||
self.store.select('table', where="index > start and index < stop") | |||
|
|||
def time_store_repr(self): | |||
repr(self.store) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this may not show much as there is only a couple of nodes
create a new store that has an example like your issue (but use only like 50 nodes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6 is plenty of nodes to show the issue:
before after ratio
[75c8698e] [a5016b44]
- 24.82ms 7.09μs 0.00 hdfstore_bench.HDF5.time_store_repr
- 24.45ms 6.76μs 0.00 hdfstore_bench.HDF5.time_store_str
pandas/io/pytables.py
Outdated
@@ -1161,6 +1136,37 @@ def copy(self, file, mode='w', propindexes=True, keys=None, complib=None, | |||
|
|||
return new_store | |||
|
|||
def info(self): | |||
"""return detailed information on the store | |||
.. versionadded:: 0.21.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a blank line before versionadded
…avior. __unicode__ now only returns file path info, not (expensive) details on all existing keys.
Codecov Report
@@ Coverage Diff @@
## master #16666 +/- ##
==========================================
- Coverage 90.93% 90.93% -0.01%
==========================================
Files 161 161
Lines 49269 49268 -1
==========================================
- Hits 44802 44801 -1
Misses 4467 4467
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16666 +/- ##
==========================================
- Coverage 90.93% 90.92% -0.01%
==========================================
Files 161 161
Lines 49269 49271 +2
==========================================
Hits 44802 44802
- Misses 4467 4469 +2
Continue to review full report at Codecov.
|
supersedes #16514
HDFStore unicode now only returns file path info. New info() method has the previous behavior of unicode.
git diff upstream/master --name-only -- '*.py' | flake8 --diff