|
|
|
|
|
by _cs2017_
1231 days ago
|
|
Curious, in what cases might this help? The compute would have to be python-bound (not C library-bound); and the frequency of module lookups would have to be in the ballpark of other dictionary lookups. I wonder if cases like this exist in the real world. |
|
(It's much faster if you implement the callback in native code, but then that doesn't work on IronPython, Jython etc.)