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

feature: A C file that's strangely very slow to reparse #196

Open
1 task done
casouri opened this issue Mar 1, 2024 · 0 comments
Open
1 task done

feature: A C file that's strangely very slow to reparse #196

casouri opened this issue Mar 1, 2024 · 0 comments

Comments

@casouri
Copy link

casouri commented Mar 1, 2024

Did you check the tree-sitter docs?

Is your feature request related to a problem? Please describe.

Some user reported that editing a particularly huge C file is very very slow, in fact, orders of magnitude slower than I expect, so there might be something going on.

Download this file: https://raw.githubusercontent.com/wireshark/wireshark/master/epan/dissectors/packet-rrc.c

And find a function at the end of the file, say proto_register_rrc. make some edit in it, and try to incrementally reparse the file. It'll take ~30 seconds on my relatively new laptop. Even thought the file is large (10MB), it should't take ~30 seconds to reparse.

Describe the solution you'd like

Figure out why it is so slow to parse this file.

Describe alternatives you've considered

It might be some strange syntax used in the C file that caused the parser to operate very inefficiently. But I'm note sure

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant