Repository navigation
Skip parquet getitem optimization for some keys - #5917
Conversation
| # find the keys to optimize | ||
| from .io.parquet.core import ParquetSubgraph | ||
|
|
||
| keys = set(keys) |
There was a problem hiding this comment.
Thoughts on using something like set(map(key_split, keys)) instead so that we don't have to generate the full key-sets for all of the graphs? Or is this unlikely to be a performance issue because we only do it relatively rarely?
There was a problem hiding this comment.
For my own understanding, is this likely to be a large object in normal cases? My understanding is that the size here is generally equal to the number of collections * the number of partitions being optimized.
Earlier in optimize, convert this to a list with list(core.flatten(keys)).
|
Thanks for doing this @TomAugspurger . I had a small question, but I say go ahead and merge if you're feeling good about this. |
|
I had a similar concern. I’ll try out the other way and do some profiling.
… On Feb 20, 2020, at 11:54 PM, Matthew Rocklin ***@***.***> wrote:
Thanks for doing this @TomAugspurger . I had a small question, but I say go ahead and merge if you're feeling good about this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
This is now the most expensive check in the "can I optimize this" stage. But things seem OK overall. I pushed a small optimization to avoid the New set-based |
|
Will merge tomorrow or thursday. Not a huge rush on this, but it'd be good to have it for the release. |
Closes #5893