-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SDATA cumulative and improve performance
Each `SDATA` extractor will add to the SDATA hash, instead of having the "last" collector win. This shouldn't affect much, but would allow for logs containing JSON and lazy K/V pairs to expose both via SDATA. The order of the SDATA collectors determines precedence. The highest priority is RFC5424 Structured Data, followed by JSON, followed by "lazy" K/V data. Also: * Bump everything to `use v5.16` as that's the minimum Perl version * Add KV and JSON detection to the benchmark script for flame graphs on those parts * Fix cpanfile generation * Fix Github actions * Add `normalize_test_result()` function for handling elements in the results that might change based on the environment * Remove named captures. Named captures do make things more readable, but they are dramatically slower. Removing these from the library has increased the parse speed significantly. * Add `psl_enable_sdata()` function to adjust enable full structured data parse mode. * Don't create the empty hash as the copy takes more time than not reallocating it. Adjust tests to remove the empty keys.
- Loading branch information
Showing
52 changed files
with
237 additions
and
235 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ Makefile.old | |
.cvsignore | ||
pm_to_blib | ||
MYMETA.* | ||
nytprof* |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!perl | ||
|
||
use v5.14; | ||
use v5.16; | ||
use warnings; | ||
use Benchmark qw/timethese cmpthese/; | ||
use Const::Fast; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!perl | ||
|
||
use v5.14; | ||
use v5.16; | ||
use warnings; | ||
use Const::Fast; | ||
use Dumbbench; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/perl | ||
# | ||
use v5.14; | ||
use v5.16; | ||
use warnings; | ||
|
||
use Benchmark qw(cmpthese); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/perl | ||
# | ||
use v5.14; | ||
use v5.16; | ||
use warnings; | ||
|
||
use Benchmark qw(cmpthese); | ||
|
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
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
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
Oops, something went wrong.