Pint 0.23 focus is on performance #1820
Replies: 2 comments 1 reply
-
our biggest bottle neck is the constant conversion from one unit to another. It would be nice if we could set the units/prefix for a dimension on application start and then pint was there to ensure the units work out as expected but only convert them when required. This would allow us to work on ensuring our code still has the units we want but gives an easy path to optimization by fixing methods that are constantly requiring the unit conversion to ensure it is no longer required. @hgrecco would be very happy to continue to test out and post flame charts of what we had seen earlier if you give me a shout when you have a commit on |
Beta Was this translation helpful? Give feedback.
-
@matroscoe just re-upping @hgrecco 's suggestion about putting some code into pint/testsuite/benchmarks. I made some benchmark code for Pint-Pandas that showed both some surprising good results as well as some expected areas for improvement. |
Beta Was this translation helpful? Give feedback.
-
Pint 0.23 will focus on performance on common tasks. I have prototyped some ideas, which you can find in the develop branch. Briefly, the main thing is refactoring certain internal parts of the code to make it easier to put a cache on costly operations. Please, let us know here what are the largest bottlenecks that you are seeing.
Beta Was this translation helpful? Give feedback.
All reactions