Conversation
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
…indAllStringSubmatch Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
|
/ai can you run additional benchmarks on this and see if it helps in any other situations? |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change removes the exported 🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
/ai please fix libbeat/processors/dissect/field.go:77:2: SA4005: ineffective assignment to field baseField.greedy (staticcheck) make sure all lint and tests are passing |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
💚 CLA has been signed |
mauri870
left a comment
There was a problem hiding this comment.
My understanding from the code (and investigating a previous bug) is that we cannot ever have multiple matches, so in theory the changes here retain the same exact behavior as before. Still, I would appreciate another pair of eyes on this.
I have the same understanding, but I never touched this processor. Also I see the code changed is covered by tests, so it looks good. |
|
/test |
correction. The tests didn't run. Let's see if |
785b203 to
dfad542
Compare
|
/test |
|
Parser creation is faster but this isnt actually a hot path for anything other than config unpacking
|
extractKeyPartsusedFindAllStringSubmatchdespite the anchoredsuffixREonly ever producing a single match. This allocated a redundant[][]stringwrapper on every call.Switch to
FindStringSubmatchand index directly into the flat[]string:Benchmark results (
BenchmarkDissectNoConversionMultipleValues/WithConversion):Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.