Skip to content

Conversation

michaeladler
Copy link
Contributor

Summary

  • Use direct map iteration in DeepCompare
  • Add explicit string handling in normalizeValue to avoid unnecessary and slow formatting

Basic example

This doesn't change existing behavior.

Motivation

Performance :)
For example, parsing ~60k n-quads on an AMD Ryzen 7 PRO 8840U now takes 1.7s, down from 5.3s (a ~68% reduction).

Checks

  • Passes make test

- Use direct map iteration in DeepCompare
- Add explicit string handling in normalizeValue to avoid unnecessary
  and slow formatting

For example, parsing ~60k n-quads on an AMD Ryzen 7 PRO 8840U now takes
1.7s, down from 5.3s (a ~68% reduction).

Co-authored-by: Alex Borodin <alex.borodin.ext@siemens.com>
Signed-off-by: Alex Borodin <alex.borodin.ext@siemens.com>
Signed-off-by: Michael Adler <michael.adler@siemens.com>
Copy link
Member

@kazarena kazarena left a comment

Choose a reason for hiding this comment

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

Looks good. Thank you!

@kazarena kazarena merged commit 0d71f10 into piprate:master Jul 28, 2025
5 of 6 checks passed
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.

2 participants