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

Eliminate closure allocations #8887

Merged
2 commits merged into from Feb 25, 2021

Conversation

drewnoakes
Copy link
Member

Proposed changes

This change removes 427,688 bytes of closure allocations while loading GE with the gitextensions repo.

Passing the argument on the stack allows the delegate to be cached by the compiler, rather than allocating a new instance for each call.

Test methodology

  • Manual testing

✒️ I contribute this code under The Developer Certificate of Origin.

This change removes 427,688 bytes of closure allocations while loading GE with the gitextensions repo.

Passing the argument on the stack allows the delegate to be cached by the compiler, rather than allocating a new instance for each call.
@ghost ghost assigned drewnoakes Feb 25, 2021
@codecov
Copy link

codecov bot commented Feb 25, 2021

Codecov Report

Merging #8887 (4e0cb6a) into master (b6905f1) will increase coverage by 0.03%.
The diff coverage is 31.84%.

@@            Coverage Diff             @@
##           master    #8887      +/-   ##
==========================================
+ Coverage   56.03%   56.06%   +0.03%     
==========================================
  Files         922      922              
  Lines       65944    65824     -120     
  Branches    12070    12071       +1     
==========================================
- Hits        36951    36905      -46     
+ Misses      25985    25911      -74     
  Partials     3008     3008              
Flag Coverage Δ
production 43.30% <21.51%> (+0.04%) ⬆️
tests 94.82% <87.27%> (-0.01%) ⬇️

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

@RussKie RussKie added the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Feb 25, 2021
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
@ghost ghost removed the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Feb 25, 2021
@ghost
Copy link

ghost commented Feb 25, 2021

Hello @drewnoakes!

Because this pull request has the status: auto merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 8 hours, a condition that will be fulfilled in about 3 hours 24 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 2db4b11 into gitextensions:master Feb 25, 2021
@ghost ghost added this to the 3.6 milestone Feb 25, 2021
@drewnoakes drewnoakes deleted the remove-closure-allocation branch February 25, 2021 23:23
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants