Skip to content

roomhistory: make rendering a message much faster

Julian Sparber requested to merge jsparber/fractal:speedup into master

Rendering of a room message was really slow (> 10ms), mostly because we create some RegExp inside loops, which is really slow.

This replaces the RegExp with contains()/start_with(), which makes rendering much faster (<< 1ms), it also cleans up some code.

(It's not really visible because of the lazy loading)

Merge request reports