|
|
|
|
|
by bbb
6003 days ago
|
|
5. Any type of bit twiddling sucks. Take the time to do it in C and make the extension. I recently had to do something like this and ended up using SWIG to generate the glue code. However, I noticed that my code had to spent considerable time (many iterations) in the C++ library to reduce overall execution time (but then it did by a factor of 20x-40x). Do you happen to have some advice on how much speedup could be gained by replacing SWIG with handwritten wrappers? |
|