perf: avoid method chaining for some shape_generators#3615
perf: avoid method chaining for some shape_generators#3615ianna merged 2 commits intoscikit-hep:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
🚀 New features to boost your workflow:
|
|
Hi @pfackeldey why not use the assert never generator in these cases? On phone so is there something I’m missing? |
|
ianna
left a comment
There was a problem hiding this comment.
@pfackeldey - Looks great! Thanks for speeding it up!
this PR improves performance by avoiding creation of unnecessary shape_generators where the actual shape is already known. This can become noticeable in cases where trivial getitems (or similar) are chained many times in very large layouts, i.e. coffea's NanoEvents data structure.