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

zimcheck: better and faster redirect loop check #312

Merged
merged 1 commit into from
Aug 12, 2022

Commits on Aug 12, 2022

  1. zimcheck: better and faster redirect loop check

    With this implementation deep chains of redirections are not
    mis-reported as loops. Besides it is faster compared to the old
    implementation for the following reasons:
    
    - Redirection info is read from every entry/dirent exactly once;
      all subsequent processing is with minimal in-memory data required
      for the task.
    
    - When a standalone loop redirection is performed (for example,
      `zimcheck -L` with no other option) the auxiliary
      effient-order-to-by-path-order conversion table is not computed.
      In this case, in addition to shorter runtime, the memory usage is
      lower, too.
    veloman-yunkan committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    ddb1cf3 View commit details
    Browse the repository at this point in the history