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

small perf improvements in ProtoToGraphNodeMappings and ZipArchive #1800

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

maltek
Copy link
Contributor

@maltek maltek commented Jan 10, 2025

  • ProtoToGraphNodeMappings: use mutable datastructures internally. The immmutable maps have some unneccessary overhead.
  • ZipArchive: don't return results as linked list, but as ArraySeq

@maltek maltek requested review from mpollmeier and bbrehm January 10, 2025 10:55
private var protoNodeIdToGNode = Map.empty[Long, DNode]
private var typeFullNameToGNode = Map.empty[String, DNode]

def addAll(other: ProtoToGraphNodeMappings): Unit = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing this since it appears unused, not because there's any problem implementing it with the mutable maps

@mpollmeier
Copy link
Contributor

PR build will greenify with #1799

@mpollmeier mpollmeier force-pushed the mkraus/small-perf-fixes branch from 1967e6e to cba2036 Compare January 10, 2025 11:08
@maltek maltek merged commit 2007cdb into master Jan 10, 2025
1 check passed
@maltek maltek deleted the mkraus/small-perf-fixes branch January 10, 2025 11:57
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.

3 participants