Memoising the map lookup saves a noticeable chunk of time in hash lookups.
Memoising the map lookup saves a noticeable chunk of time in hash lookups.

mrflip/htmlentities,sbauch/htmlentities,threedaymonk/htmlentities