Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: improve perf in deleteUnresolvedResolutionsFromCache #2320

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

jasonlyu123
Copy link
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
2 checks passed
@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