diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2022-07-06 09:22:49 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2022-07-19 09:30:13 -0400 |
commit | bad40ed7b7b00bf229cf96e47445fc1139db526c (patch) | |
tree | 5cf2be4d3317afdc7fd0480328151eb2be680278 /.cirrus.yml | |
parent | 7240a8fc32dbfcf17d6d9b165b00311ad9591214 (diff) | |
download | sos-bad40ed7b7b00bf229cf96e47445fc1139db526c.tar.gz |
[clean] Don't re-create regex for parsers on every skip check
When determining if a parser should be skipped for a given file, we were
previously doing so ineffeciently by regenerating the regex object for
every file from the parser's `skip_files` class attr.
Instead, during parser initialization, use those string definitions to
create a list of regex objects to be used directly by the skip file
checks. This way, we only generate the regex objects once for each
parser for the entire run.
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to '.cirrus.yml')
0 files changed, 0 insertions, 0 deletions