-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fielder): eliminate expensive inner calls (#33)
## Which problem is this PR solving? - Fielder is much more expensive than it should be; this only turned up from profiling a real output, not a dummy output, since Fielder does not get invoked except on real output. ![image (25)](https://github.com/honeycombio/loadgen/assets/614704/ec3e7877-821e-45fa-98fb-89635a6fee28) ## Short description of the changes - Move regexp.MustCompile out of the hot path - Eliminate getGoroutineId since it requires gathering a full traceback which is very slow. --------- Co-authored-by: Kent Quirk <kentquirk@honeycomb.io>
- Loading branch information
1 parent
9f44a3e
commit 5cf1940
Showing
1 changed file
with
5 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters