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

Happier cache lines #491

Merged
merged 3 commits into from
Sep 5, 2024
Merged

Happier cache lines #491

merged 3 commits into from
Sep 5, 2024

Commits on Aug 25, 2024

  1. Happier cache lines.

    Probably the only change that actually affects something, `struct ir_state` is both important and now fits within a single cache line.
    
    I did this by eyeballing:
    ```
    ; bmake -r -j 10 CC=clang DEBUG=1 && (for t in `cat /tmp/tags`; do pahole --class_name $t build/src/*/*.o build/src/adt/*.o ; done ) > /tmp/tt
    ```
    
    This gives a ~2% improvement on total execution for rx -q /usr/share/bin/words
    katef committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    d557943 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a40553 View commit details
    Browse the repository at this point in the history
  3. No need for calloc here.

    katef committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    f1ca8e8 View commit details
    Browse the repository at this point in the history