Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Conversation

@bosd
Copy link
Collaborator

@bosd bosd commented Aug 28, 2024

Speedup as in camelot-dev#161

For reference: numpy/numpy#16160

Seems still actual in 2024. My results:

import timeit print(timeit.timeit('np.isclose(0.5, 0, atol=1e-4)', 'import numpy as np', number=10000)) # 0.2664242945611477 print(timeit.timeit('math.isclose(0.5, 0, abs_tol=1e-4)', 'import math', number=10000)) # 0.001325499266386032

Once ready, prefer to squash and merge.

More performance gains could potentially be realized. But let's do that in a separate PR.
atlanhq/camelot#427

@bosd bosd added the performance Performance label Aug 28, 2024
@bosd bosd mentioned this pull request Aug 28, 2024
25 tasks
@bosd bosd marked this pull request as ready for review August 28, 2024 21:18
@bosd bosd merged commit 75d94c4 into py-pdf:main Oct 6, 2024
@bosd bosd deleted the h2o-speedup branch October 8, 2024 17:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

performance Performance

3 participants