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

Reduce unnecessary calls to STRLEN() in ex_spellrepall() #12497

Closed
wants to merge 1 commit into from

Conversation

zeertzjq
Copy link
Member

@zeertzjq zeertzjq commented Jun 6, 2023

And fix typo in test name.

@codecov
Copy link

codecov bot commented Jun 6, 2023

Codecov Report

Merging #12497 (c0f1234) into master (d1911a8) will increase coverage by 5.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #12497      +/-   ##
==========================================
+ Coverage   77.08%   82.09%   +5.00%     
==========================================
  Files         150      160      +10     
  Lines      151227   193606   +42379     
  Branches    38964    43469    +4505     
==========================================
+ Hits       116574   158938   +42364     
+ Misses      22482    21823     -659     
- Partials    12171    12845     +674     
Flag Coverage Δ
huge-clang-none 82.74% <100.00%> (?)
linux 82.74% <100.00%> (?)
mingw-x64-HUGE 76.60% <100.00%> (?)
mingw-x86-HUGE 77.05% <100.00%> (-0.03%) ⬇️
windows 78.19% <100.00%> (+1.10%) ⬆️

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

Impacted Files Coverage Δ
src/spell.c 81.98% <100.00%> (+0.62%) ⬆️

... and 153 files with indirect coverage changes

@brammool brammool closed this in 59f7038 Jun 6, 2023
@zeertzjq zeertzjq deleted the spellrepall branch June 6, 2023 15:01
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Jun 6, 2023
Problem:    strlen() called too often for :spellrepall.
Solution:   Store the result in a variable. (closes vim/vim#12497)

vim/vim@59f7038
zeertzjq added a commit to neovim/neovim that referenced this pull request Jun 6, 2023
Problem:    strlen() called too often for :spellrepall.
Solution:   Store the result in a variable. (closes vim/vim#12497)

vim/vim@59f7038
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.

None yet

1 participant