Closed ioquatix closed 5 years ago
mapping
is provided as an argument while PATTERN is generated from the mapping used. So, in theory, it should probably be moved into the function. It depends on whether mapping
is actually constant or not.
In that case, I'd suggest a class instance, to cache the PATTERN
.
Good point. I added your optimization in unaccent_gsub_3b
and updated the benchmark and readme. Thanks. Cheers.