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

feat: parser performance #469

Merged
merged 14 commits into from
Dec 20, 2023

Conversation

lukecotter
Copy link
Contributor

@lukecotter lukecotter commented Dec 20, 2023

Description

Parser performance improvements .

  • Improved parseTimestamp and parseLineNumber, line number had a fast path added for EXTERNAL.

  • Switched from for loops to while loops in some cases.

  • faster aggregate totals function

The new method is just over 3 times faster (70% faster)
For a given log I tested with it used to take ~1400ms and now takes ~400ms.

This was achieved by bulkifying nodes to process and avoiding recursion as much as possible.

Type of change (check all applicable)

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • ⚡ Performance Improvement
  • 📝 Documentation
  • 🔧 Chore
  • 💥 Breaking change

[optional] Any images / gifs / video

Related Tickets & Documents

Related Issue #299 #475
fixes #
resolves #
closes #

Added tests?

  • 👍 yes
  • 🙅 no, not needed
  • 🙋 no, I need help

Added to documentation?

  • 🔖 README.md
  • 🔖 CHANGELOG.md
  • 📖 help site
  • 🙅 not needed

[optional] Are there any post-deployment tasks we need to perform?

@lcottercertinia lcottercertinia merged commit b74f7ce into certinia:main Dec 20, 2023
3 checks passed
@lukecotter lukecotter deleted the feat-parser-performance branch December 20, 2023 18:26
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