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 #472

Merged
merged 9 commits into from
Jan 10, 2024

Conversation

lukecotter
Copy link
Contributor

@lukecotter lukecotter commented Jan 8, 2024

Description

  • Generally improves parser performance.
  • The main change is to remove recursion from the aggregate totals function
  • Add a fast path for getting commonly used event types
  • Add a fast path for splitting new lines when the line endings are all lf e.g \n

Total parse time: from 2.02s -> 1.95s
toTree: ~1022ms -> 1025 ms
parseLog: ~974-> 750 ms

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

[optional] Any images / gifs / video

Related Tickets & Documents

Related Issue #475
fixes #
resolves #
closes #

Added tests?

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

Added to documentation?

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

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

@lcottercertinia lcottercertinia merged commit 9691945 into certinia:main Jan 10, 2024
3 checks passed
@lukecotter lukecotter deleted the feat-parser-performance branch January 10, 2024 16:36
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