Skip to content

small perf improvements in ProtoToGraphNodeMappings and ZipArchive#1800

Merged
maltek merged 2 commits intomasterfrom
mkraus/small-perf-fixes
Jan 10, 2025
Merged

small perf improvements in ProtoToGraphNodeMappings and ZipArchive#1800
maltek merged 2 commits intomasterfrom
mkraus/small-perf-fixes

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 bbrehm and mpollmeier 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