2 ms·
> Rewrite the slow bits in C++/Rust/Go and wrap it. For reposurgeon, you can't. Not the author, but I have done some hacking on it. "The slow bits" are not thi
by pdonis 7y ago
> Rewrite the slow bits in C++/Rust/Go and wrap it.
For reposurgeon, you can't. Not the author, but I have done some hacking on it. "The slow bits" are not things you can rewrite in a different language and wrap. They are much too integral to the code.
> That's how all major Python components like Numpy, Scipy, Tensorflow, PyTorch etc. does it.
And what all of these have in common is that the "slow bits" are not like those in reposurgeon. The wrapped speeded-up things are basically fast implementations of appropriate basic data types, like Numpy arrays and vectors. Those aren't the kinds of things that are slow in reposurgeon.
- ptx 7y agoSo which parts and things are the slow bits of reposurgeon? ESR seemed to be saying[1] that the last time he tried profiling it was seven years ago. [1] http://esr.ibiblio.org/?p=8161&cpage=1#comment-2065946 http://esr.ibiblio.org/?p=8161&cpage=1#comment-2065946