You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting in Python 3.7, there is a new way for C functions to define how arguments are passed from python called "fast call" or "vector call" that is supposed to be much faster than the standard method. Taking advantage of this should provide a performance boost for fastnumbers.
Unfortunately, there is as-of-yet no public API for parsing arguments when using this method, so I will have to write one. I will likely heavily borrow from numpy/numpy#15269.
The text was updated successfully, but these errors were encountered:
This uses the "vector call" functionality to call C functions. It
requires fewer memory allocations by Python to call the function and
thus is a bit faster. Unsurprisingly, this gave a 1-2 microsecond
speedup across the board in the performance tests I ran.
Unfortunately, Python does not ship a parser for this, so I adapted the
parser from the numpy project.
This closes#59.
Starting in Python 3.7, there is a new way for C functions to define how arguments are passed from python called "fast call" or "vector call" that is supposed to be much faster than the standard method. Taking advantage of this should provide a performance boost for
fastnumbers
.Unfortunately, there is as-of-yet no public API for parsing arguments when using this method, so I will have to write one. I will likely heavily borrow from numpy/numpy#15269.
The text was updated successfully, but these errors were encountered: