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:
6 files changed
+51
-38
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user