⬅︎ Back to Fastest Python function to slugify a string
Not really, that's unfair because you recreate translate_table everytime you call 2.
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.
Comment
Not really, that's unfair because you recreate translate_table everytime you call 2.
Parent 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.