Skip to content

Conversation

kdy1
Copy link
Contributor

@kdy1 kdy1 commented May 14, 2025

We can move sources and source contents beforehand, assuming we will use all sources anyway.

@kdy1 kdy1 marked this pull request as draft May 14, 2025 16:08
@kdy1
Copy link
Contributor Author

kdy1 commented May 14, 2025

I drafted the PR because the perf issue was rather builder.add

                  let raw = builder.add(
                    token.get_dst_line() + off_line,
                    dst_col,
                    token.get_src_line(),
                    token.get_src_col(),
                    token.get_source(),
                    token.get_name(),
                    token.is_range(),
                );

which performs a hashmap operation due to source

@kdy1 kdy1 marked this pull request as ready for review May 14, 2025 16:28
@kdy1 kdy1 requested a review from Swatinem May 15, 2025 17:39
@Swatinem Swatinem merged commit 38bf093 into getsentry:master May 15, 2025
6 checks passed
@kdy1
Copy link
Contributor Author

kdy1 commented May 15, 2025

Thank you for a swift review! Can you publish a new version?

@kdy1 kdy1 deleted the kdy1/flatten branch May 15, 2025 18:58
kdy1 added a commit to vercel/next.js that referenced this pull request May 16, 2025
### What?

Update the `sourcemap` crate to the latest version.

### Why?

To apply getsentry/rust-sourcemap#121
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.

2 participants