Skip to content

perf: improve perf in deleteUnresolvedResolutionsFromCache#2320

Merged
jasonlyu123 merged 1 commit into
sveltejs:masterfrom
jasonlyu123:deleteUnresolved-perf
Mar 23, 2024
Merged

perf: improve perf in deleteUnresolvedResolutionsFromCache#2320
jasonlyu123 merged 1 commit into
sveltejs:masterfrom
jasonlyu123:deleteUnresolved-perf

Conversation

@jasonlyu123

Copy link
Copy Markdown
Member

Found this problem while checking #2244 (comment). This may seem neglectable but because the tabler icon loads 5000+ .d.ts files. It is a big difference. In initial loads, the loop count is around 5000 * 5000 * importsPerFile / 2. Rearranging it cut the init load from 10s to 5s for a SvelteKit default template+ @tabler/icons-svelte in my r5 7600.

@jasonlyu123 jasonlyu123 merged commit 4abe9b3 into sveltejs:master Mar 23, 2024
@jasonlyu123 jasonlyu123 deleted the deleteUnresolved-perf branch March 23, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant