2 ms·
This would have advantage in case you only needed a few results; but in case you needed most of them, then substr would practically result in duplicating the me
by akavel 12y ago
This would have advantage in case you only needed a few results; but in case you needed most of them, then substr would practically result in duplicating the memory anyway. Plus, this is sure more cumbersome than the Rust version.