Skip to content

Conversation

@MatthewKhouzam
Copy link
Contributor

@MatthewKhouzam MatthewKhouzam commented Nov 14, 2025

What it does

Speeds up trace reading by ~5-10%. The concurrent hashmap was used to avoid contention. But the data inputted is stable. The data is first written, then read, never both at the same time. A will always produce B. So we can use a normal hashmap. Streaming CTF live would still read all the metadata and pause the trace reading when the metadata is updated. The lock is implicit.

How to test

Open a trace with enums that are wide (1000 keys).

Follow-ups

Review checklist

  • As an author, I have thoroughly tested my changes and carefully followed the instructions in this template

Speeds up trace reading by ~5-10%. The concurrent hashmap was used to avoid
contention. But the function is stable A will always produce B. So we can use
a normal hashmap.

[Changed] speed up ctf parsing of lexical scopes

Change-Id: I75f4b68de08c43f8ccb11a6fb6cc19c2e7d02f1e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
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