Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

[FIX] Use Accelerate framework to resize UIImage in order to use much less memory for the share extension #2479

Merged
merged 1 commit into from Jan 7, 2019

Conversation

rafaelks
Copy link
Contributor

@rafaelks rafaelks commented Jan 7, 2019

@RocketChat/ios

Closes #2200

I decided to go low-level on this one, since sharing screenshots from iOS apparently sets a limit of 120MB of RAM, and the method we were using was reaching 120MB easily with any screenshot, causing the extension to crash.

More info can be found here.

…a low level way to optimize the resizing of UIImages and avoid using too much memory
@rafaelks rafaelks added this to the 3.3.0 milestone Jan 7, 2019
@rafaelks rafaelks added this to In progress in Cycle 13: 01/05 ~ 02/05 via automation Jan 7, 2019
@codecov
Copy link

codecov bot commented Jan 7, 2019

Codecov Report

Merging #2479 into develop will decrease coverage by 0.06%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2479      +/-   ##
===========================================
- Coverage    26.29%   26.22%   -0.07%     
===========================================
  Files          456      456              
  Lines        16895    16935      +40     
===========================================
  Hits          4442     4442              
- Misses       12453    12493      +40
Impacted Files Coverage Δ
Rocket.Chat/Extensions/UIImageExtension.swift 25.77% <0%> (-18.09%) ⬇️

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 31c538a...6338881. Read the comment docs.

@rafaelks rafaelks changed the title [FIX][WIP] Use Accelerate framework to resize UIImage in order to use much less memory for the share extension [FIX] Use Accelerate framework to resize UIImage in order to use much less memory for the share extension Jan 7, 2019
@rafaelks rafaelks merged commit caab0e9 into develop Jan 7, 2019
Cycle 13: 01/05 ~ 02/05 automation moved this from In progress to Done Jan 7, 2019
@rafaelks rafaelks deleted the crash/sceenshot_sharing.2200 branch January 7, 2019 14:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant