Skip to content

Use EqualFold ti avoid memory reallocations#129

Merged
daveshanley merged 1 commit intopb33f:mainfrom
bitomaxsp:performance
Jun 17, 2023
Merged

Use EqualFold ti avoid memory reallocations#129
daveshanley merged 1 commit intopb33f:mainfrom
bitomaxsp:performance

Conversation

@bitomaxsp
Copy link
Copy Markdown

@bitomaxsp bitomaxsp commented Jun 17, 2023

On very large specs ToLower becomes a bottleneck since it reallocates a lot

@bitomaxsp
Copy link
Copy Markdown
Author

First profile with ToLower
profile001

Second with EqualFold
profile004

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 17, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (06f6b24) 99.76% compared to head (a7f3027) 99.76%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #129   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files         146      146           
  Lines       10091    10091           
=======================================
  Hits        10067    10067           
  Misses         24       24           
Flag Coverage Δ
unittests 99.76% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
datamodel/low/extraction_functions.go 99.67% <100.00%> (ø)
utils/utils.go 99.64% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Member

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, this is great! Thank you!

@daveshanley
Copy link
Copy Markdown
Member

I will include this with the v0.9.0 #128 release

@daveshanley daveshanley mentioned this pull request Jun 17, 2023
@daveshanley daveshanley merged commit fa33764 into pb33f:main Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants