Skip to content

Js/fix imageframe allocation#349

Merged
tocsoft merged 4 commits intomasterfrom
js/fix-imageframe-allocation
Sep 22, 2017
Merged

Js/fix imageframe allocation#349
tocsoft merged 4 commits intomasterfrom
js/fix-imageframe-allocation

Conversation

@JimBobSquarePants
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

This fixes the allocations we discovered in #348

Turns out we were double cloning and not disposing of frames when initializing the ImageFrameCollection.

@codecov
Copy link

codecov bot commented Sep 22, 2017

Codecov Report

Merging #349 into master will increase coverage by <.01%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #349      +/-   ##
==========================================
+ Coverage   86.54%   86.55%   +<.01%     
==========================================
  Files         788      788              
  Lines       34670    34671       +1     
  Branches     2589     2589              
==========================================
+ Hits        30006    30009       +3     
+ Misses       3875     3873       -2     
  Partials      789      789
Impacted Files Coverage Δ
src/ImageSharp/Image/ImageFrameCollection.cs 90.62% <100%> (+0.14%) ⬆️
src/ImageSharp/Image/Image{TPixel}.cs 78.94% <50%> (ø) ⬆️
tests/ImageSharp.Tests/TestFormat.cs 77.38% <0%> (+2.38%) ⬆️

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 75e9935...3f5442c. Read the comment docs.

@tocsoft
Copy link
Member

tocsoft commented Sep 22, 2017

This is fine... what I should have done done in the original Pr

@tocsoft tocsoft merged commit 2c8d68a into master Sep 22, 2017
@tocsoft tocsoft deleted the js/fix-imageframe-allocation branch September 22, 2017 08:54
@JimBobSquarePants
Copy link
Member Author

Och we all missed it. 😄

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