2 ms·
There are probably ways to speed it up significantly in plain Python. For example, if you're processing strings you'll probably want to avoid iterating over ind
by ptx 7y ago
There are probably ways to speed it up significantly in plain Python. For example, if you're processing strings you'll probably want to avoid iterating over individual characters and rely more on regular expressions, str.translate or other higher-level mechanisms.
Did you profile the Python code?