Revert "perf: improve efficiency and performance"

This commit is contained in:
Xylight authored and GitHub committed 2025-08-01 21:26:04 +00:00
1 parent 7e188f218a
commit 4177b42fc2
32 files changed
+470 -248

No files matched your search

+1 -2
View File
@@ -16,7 +16,6 @@
import { Button, Modal } from 'mono-svelte'
import { ChatBubbleOvalLeftEllipsis, Icon, Inbox } from 'svelte-hero-icons'
import { expoOut } from 'svelte/easing'
import { SvelteSet } from 'svelte/reactivity'
import { fly } from 'svelte/transition'
interface ConversationPreview {
@@ -35,7 +34,7 @@
}
function filterDuplicates<T, K>(array: T[], predicate: (item: T) => K): T[] {
const seen = new SvelteSet()
const seen = new Set()
return array.filter(element => {
const value = predicate(element)
if (seen.has(value)) {