⬅︎ Back to Fastest Python function to slugify a string
To be fair, the `translate_table` creation should be inside the `_slugify2` function, which is the only one that uses it.In addition, maybe you should use `timeit` to run them more than once.
Not really, that's unfair because you recreate translate_table everytime you call 2.
Comment
To be fair, the `translate_table` creation should be inside the `_slugify2` function, which is the only one that uses it.
In addition, maybe you should use `timeit` to run them more than once.
Replies
Not really, that's unfair because you recreate translate_table everytime you call 2.