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

WIP synchronous mapping #820

Closed

Conversation

dummdidumm
Copy link
Member

This replaces asynchronous source-map with a synchronous mapping implementation using sourcemap-codec. According to the performance test there is no noticeable difference at file lenghts like these - source-map is better at really large files (thousands of lines), which is not the case for 99,9% of all Svelte files the user will edit with this. A further (according to tests not noticeable) performance improvment would be to return the decoded form of the source map from svelte2tsx (it used sourcemap-coded, too).

The mapping implementation could also serve as a reference implementation for synchronous source mapping for TS plugin (#580)

Simon Holthausen added 3 commits February 15, 2021 18:45
This replaces asynchronous `source-map` with a synchronous mapping implementation using `sourcemap-codec`. According to the performance test there is no noticeable difference at file lenghts like these - `source-map` is better at really large files (thousands of lines), which is not the case for 99,9% of all Svelte files the user will edit with this. A further (according to tests not noticeable) performance improvment would be to return the decoded form of the source map from svelte2tsx (it used sourcemap-coded, too).

The mapping implementation could also serve as a reference implementation for synchronous source mapping for TS plugin (sveltejs#580)
@dummdidumm
Copy link
Member Author

Mapping was replaced a while ago and is now synchronous

@dummdidumm dummdidumm closed this Feb 8, 2023
@dummdidumm dummdidumm deleted the synchronous-source-mapping branch February 8, 2023 09:16
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