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

Remove underscore regexps #448

Merged
merged 2 commits into from
Oct 11, 2020
Merged

Remove underscore regexps #448

merged 2 commits into from
Oct 11, 2020

Conversation

pelletier
Copy link
Owner

Issue: #440

Remove the last use of regexps in the parser.

benchmark                    old ns/op     new ns/op     delta
BenchmarkUnmarshalToml-8     269582        257032        -4.66%

benchmark                    old allocs     new allocs     delta
BenchmarkUnmarshalToml-8     2650           2650           +0.00%

benchmark                    old bytes     new bytes     delta
BenchmarkUnmarshalToml-8     127761        127030        -0.57%

@moorereason

Fixes #440

Fixes #440.

```
benchmark                    old ns/op     new ns/op     delta
BenchmarkUnmarshalToml-8     269582        257032        -4.66%

benchmark                    old allocs     new allocs     delta
BenchmarkUnmarshalToml-8     2650           2650           +0.00%

benchmark                    old bytes     new bytes     delta
BenchmarkUnmarshalToml-8     127761        127030        -0.57%
```
@pelletier pelletier added the performance Issue related to a performance problem or pull request improving performance. label Oct 11, 2020
@codecov
Copy link

codecov bot commented Oct 11, 2020

Codecov Report

Merging #448 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #448      +/-   ##
==========================================
+ Coverage   93.56%   93.57%   +0.01%     
==========================================
  Files          10       10              
  Lines        2253     2257       +4     
==========================================
+ Hits         2108     2112       +4     
  Misses        105      105              
  Partials       40       40              
Impacted Files Coverage Δ
parser.go 90.46% <100.00%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c66c78...9f59d9b. Read the comment docs.

go.mod Outdated Show resolved Hide resolved
@pelletier pelletier merged commit 5b4e7e5 into master Oct 11, 2020
@pelletier pelletier deleted the regexp-parser branch October 11, 2020 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Issue related to a performance problem or pull request improving performance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor date detection in lexer
2 participants