Skip to content

Rewrite line number computation in WSL#304

Open
jrmuizel wants to merge 1 commit intoWebKit:mainfrom
jrmuizel:main
Open

Rewrite line number computation in WSL#304
jrmuizel wants to merge 1 commit intoWebKit:mainfrom
jrmuizel:main

Conversation

@jrmuizel
Copy link
Copy Markdown

@jrmuizel jrmuizel commented Apr 22, 2026

Instead of computing the line number on demand, keep track of it as we lex.

Previously, we ended up spending a quadratic amount of time computing the line number because we'd do something like:

for every index:
        count the number line breaks up to this index.

Fixes #298

Instead of computing the line number on demand, keep track of it as we
lex.

Previously, we ended up spending a quadratic amount of time computing
the line number because we'd do something like:
for every index:
        count the number line breaks up to this index.

Fixes WebKit#298
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 22, 2026

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit f1792e0
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/69e8cb811cbeb70008f27d47
😎 Deploy Preview https://deploy-preview-304--webkit-jetstream-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Rewrite line number computation in WSL

1 participant