Devstopfix
Software Engineering
November 25, 2020
Benchmark Elixir Functions
Recently I found an optimization I wanted to make in some string processing code - it was making multiple passes that could be replaced with a single pass using pattern matching and IO Lists.
Here is the commit that escapes XML entities in a string where we replace multiple regular expressions with a single recursive pass. There are two questions - does the code produce the same results, and is it faster?