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

When the Nginx configuration file is too large, the loading speed is extremely slow. #51

Open
MonkeyDLufy opened this issue Jul 23, 2024 · 0 comments

Comments

@MonkeyDLufy
Copy link

MonkeyDLufy commented Jul 23, 2024

I've observed that the code uses data[index:] for regular expression matching on each occasion. When dealing with a very large Nginx configuration file, for instance, one with tens of thousands of lines, the loading speed can be significantly slow, sometimes taking several hours to complete. I improved this by optimizing A slice of 1000, which greatly increases the parsing speed. A slice of 1000 is typically adequate to fulfill the parsing requirements.

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

No branches or pull requests

1 participant