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

perf(transformer): introduce NonEmptyStack #6092

Merged
merged 1 commit into from
Sep 27, 2024

Commits on Sep 27, 2024

  1. perf(transformer): introduce NonEmptyStack (#6092)

    `NonEmptyStack` is a stack structure, optimized for fast push/pop and reading/writing the last entry on the stack. By always having 1 at least one entry, `last` and `last_mut` can be made branchless and extremely cheap (only 1 CPU op).
    
    Use `NonEmptyStack` as one of the backing stores in `SparseStack`.
    overlookmotel committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    ad4ef31 View commit details
    Browse the repository at this point in the history