Re:Speed up your Python using Rust
by dr_zoidberg on Friday November 17, 2017 @07:34AM
(#15721465)
Good numpy implementation of the algorithm. If, for whatever reason, numpy isn't available, you can also pull it with a good comprehension:
Which will also allow you to avoid a function call entirely, if it was useful in some way:
(Numpy still beats it, for long strings).
[ Parent
| on HN ]
There are no comments on this comment yet.