summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-04-15 21:06:08 +0200
committerdelthas <delthas@dille.cc>2022-04-15 21:06:08 +0200
commitc72f7fdb261b1e57874d59bbf99a43f0f56b6478 (patch)
tree2840dcd71df5f8914a3bc021cd9ee0f29420dbc6 /ui/ui.go
parentBatch events by time period rather than by fixed size (diff)
Optimize URL regex
Following a quick local profiling & benchmark, matching links with regexes is by far (>50x) the most time-consuming processing we do, especially on start. Switching to a URL regex with any scheme is faster by a factor of ~x8, probably because there are many less "or" cases between a list of 100+ schemes, instead using a simple character class.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions