-
Notifications
You must be signed in to change notification settings - Fork 469
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
Performance of wrapper #1792
Comments
I have also been running into significant performance bottle necks as documented in: #1750 |
Performance will be address in the next version. Would you like to help developing or improving the benchmark? |
I'm not sure how much time I'll be able to spend on this, but I'll try to help improving the performances |
I pushed some benchmarks. The results are : https://codspeed.io/hgrecco/pint/benchmarks There are still things to polish, but is a good start. |
See #1820 |
I'm using pint in my library with some wrappers that give a nice user interface, but unfortunately they also take a lot of time.
Basically I'm using a code that looks like this:
I'm then using
self._q
(without unit) for some relatively heavy computations.Unfortunately most of the time is spent in the object creations . This is particularly frustrating with
strict=False
, when even callingFoo(100)
takes a lot of time, as one could expect a more transparent process.Yet I'm not sure if anything can be done to speed up the process. In case it can help, I've attached the profiler results from my application showing the time spend in pint:
The text was updated successfully, but these errors were encountered: