Skip to content

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

Open
@MonkeyDLufy

Description

@MonkeyDLufy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions