Skip to content

Improve memory handling#20

Merged
onmyway133 merged 7 commits intomasterfrom
improve/memory-handling
May 23, 2016
Merged

Improve memory handling#20
onmyway133 merged 7 commits intomasterfrom
improve/memory-handling

Conversation

@zenangst
Copy link
Copy Markdown
Contributor

This PR aims to improve the memory usage of Imaginary. Based on the changes in hyperoslo/Cache#41, the memory footprint of Imaginary is significantly lower.

This data is from an internal application that as a feed feature with a lot of content, in this particular example it is a feed with 882 items (not all images).x

Before

screen shot 2016-05-23 at 11 01 49

### After

screen shot 2016-05-23 at 11 04 26

@mention-bot
Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @vadymmarkov, @aashishdhawan and @RamonGilabert to be potential reviewers

expiry: .Date(NSDate().dateByAddingTimeInterval(60 * 60 * 24 * 3)),
maxSize: 0)
maxSize: 0,
maxObjects: 10)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This should probably be configurable in the future, but right now 10 felt like a good amount.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

😇

@onmyway133 onmyway133 merged commit 6152c6b into master May 23, 2016
@onmyway133 onmyway133 deleted the improve/memory-handling branch May 23, 2016 09:37
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.

3 participants