impr: precompute regexes for filters rather than uhhh re-creating them in a loop every single time filter() is called this is CS 101 brethren

This commit is contained in:
Xylight committed 2026-01-29 20:46:04 -08:00
1 parent 9b55e0da58
commit 9e67489df2
6 files changed
+51 -38

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import { browser } from '$app/environment'
import { env } from '$env/dynamic/public'
import type { CommentSortType, ListingType, SortType } from '$lib/api/types'
import type { Filter } from '$lib/feature/post/filters'
import type { Filter } from '$lib/feature/post/filters.svelte'
import { locale } from './i18n'
// TODO extract settings into submodules