Skip to content

perf(dataset): share repeated Weka hash ID integers within each trace - #63

Open
rawsh wants to merge 1 commit into
SemiAnalysisAI:masterfrom
rawsh:fix/weka-hash-id-sharing
Open

rawsh wants to merge 1 commit into
SemiAnalysisAI:masterfrom
rawsh:fix/weka-hash-id-sharing

Conversation

@rawsh

@rawsh rawsh commented Oct 23, 2026

Copy link
Copy Markdown

The full Weka corpus has 338M hash ID occurrences but only 5.7M distinct values when counted per trace. Reusing one int object per distinct value within a trace cuts preparation memory. Values, ordering and serialization are unchanged; adds tests.

The full Weka corpus has 338M hash ID occurrences but only 5.7M distinct values when counted per trace. Reusing one int object per distinct value within a trace cuts preparation memory; values, ordering and serialization are unchanged.

Signed-off-by: Robert Washbourne <rawashbourne@gmail.com>
@rawsh
rawsh requested a review from FrankD412 as a code owner October 23, 2026 08:33
@cursor

cursor Bot commented Oct 23, 2026

Copy link
Copy Markdown

Bugbot is paused — your team has an unpaid invoice

Bugbot is paused because your team has an unpaid invoice.

Pay it from the billing page in the Cursor dashboard and Bugbot resumes automatically.

(requestId: e124c787-403f-44ed-9576-568d889f3a1e)

@github-actions

Copy link
Copy Markdown

Try out this PR

Quick install:

pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@d95c1f2768d9a704729e417ea1ae6f42e9221e44

Recommended with virtual environment (using uv):

uv venv --python 3.12 && source .venv/bin/activate
uv pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@d95c1f2768d9a704729e417ea1ae6f42e9221e44

Last updated for commit: d95c1f2 • Browse code

@github-actions github-actions Bot added the perf label Oct 23, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T08:37:46.132739Z d95c1f2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d95c1f2768

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +167 to +169
@model_validator(mode="after")
def _share_hash_id_values(self) -> Self:
"""Reuse immutable IDs within their trace-local namespace."""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Document the trace-wide hash-ID interning

This validator adds an internal Weka loading and memory-management mechanism, but the commit does not update any documentation. For internal-only mechanics, the repository requires documentation under docs/reference/ rather than skipping it, so this change remains incomplete until that reference (and its docs/index.yml entry if it is new) is added.

AGENTS.md reference: AGENTS.md:L164-L164

Useful? React with 👍 / 👎.

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant