Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.
This repository was archived by the owner on Jun 30, 2026. It is now read-only.

Redis / PostgresQL reward caching; performance comparison #14

Description

@pstjohn

Would be great to get a quantitative estimation of the performance for redis / postgresQL, perhaps some wrapper functions that make caching easier using either backend.

I've noticed that sometimes the reward calculation takes a while -- with many simultaneous games, we sometimes see the entry not present in the reward buffer, but it gets added by a different node by the time its complete. so this can throw errors

Other things we could cache depending on performance:

  • node values and prior logits (these would have to get cleared every time the model weights are updated)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions