3 ms·
I toyed around with that python DL-distance in cython and without much effort got it to work 3.5~4x faster. Have you looked into cython to optimize it? It certa
by dr_zoidberg 10y ago
I toyed around with that python DL-distance in cython and without much effort got it to work 3.5~4x faster. Have you looked into cython to optimize it? It certainly seems cheaper than adding CPU cores, even more so considering I'm quite new to cython myself (I just took the code and added types and a few fixes here and there to get it to work faster).
- dr_zoidberg 10y agoScratch that, with a bit more of tinkering got a ~80x speedup. Still get the feeling there's some more performance to get, but that'd require some assembly-fu or a different algorithm.
- dr_zoidberg 10y agoAnother slight change got me 100x. Now yes, I'd need assembly or an equivalent (but more efficient) algorithm.