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

Reintroduce Optimization of Entry::getItem() #836

Merged
merged 1 commit into from
Nov 6, 2023

Commits on Nov 4, 2023

  1. Optimization of Entry::getItem()

    For a client of libzim the only way to create an `Item` object is
    through `Entry::getItem()` or `Entry::getRedirect()` (the latter
    relying on the former to deliver the final result).
    
    Before this change, `Entry::getItem()` performed (via the `Item`
    constructor) an extra call to `FileImpl::getDirent(entry_index_t)`.
    Now the result of that operation that is readily available in the source
    `Entry` object is reused.
    veloman-yunkan authored and kelson42 committed Nov 4, 2023
    Configuration menu
    Copy the full SHA
    c23d43e View commit details
    Browse the repository at this point in the history