mirror of
https://github.com/miniflux/v2.git
synced 2024-09-09 12:49:36 +02:00
f12d5131b0
Instead of having to allocate a ~100 keys map containing possibly dynamic values (at least to the go compiler), allocate it once in a global variable. This significantly speeds things up, by reducing the garbage collector/allocator involvements. Local synthetic benchmarks have shown a improvements from 38% of wall time to only 12%. |
||
---|---|---|
.. | ||
sanitizer_test.go | ||
sanitizer.go | ||
srcset_test.go | ||
srcset.go | ||
strip_tags_test.go | ||
strip_tags.go | ||
truncate_test.go | ||
truncate.go |