Skip to content

Improve simulator#172

Open
xnoreq wants to merge 5 commits into
maypok86:mainfrom
xnoreq:improve-simulator
Open

Improve simulator#172
xnoreq wants to merge 5 commits into
maypok86:mainfrom
xnoreq:improve-simulator

Conversation

@xnoreq
Copy link
Copy Markdown

@xnoreq xnoreq commented Jan 6, 2026

Description

While going through benchmarks I noticed that simulator was using outdated modules.
Furthermore, there was an "optimal" policy, but it was neither enabled nor implemented correctly.

This PR fixes all these issues.

Related issue(s)

None

✅ Checklist for your Pull Request

Related changes (conditional)

  • Tests

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from
      silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
  • Public contracts

    • My changes doesn't break project license.

Stylistic guide (mandatory)

Before merging (mandatory)

  • Check target branch of PR is set correctly

TODO:

xnoreq added 3 commits January 6, 2026 20:15
instead of counting hits, keep track of distances to next accesses
(`next`) and use a max-heap to evict the item with the highest distance
@xnoreq xnoreq force-pushed the improve-simulator branch from 8fdb879 to f5bd253 Compare January 6, 2026 19:18
@xnoreq xnoreq force-pushed the improve-simulator branch from f5bd253 to f128db0 Compare January 6, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant