-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implemented image caching solution (closes #14) #19
Conversation
* @private | ||
*/ | ||
reloadData() { | ||
this.emptyImageCache(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a test for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth it to file follow up to add a formal way to "append" content (ie. new content bellow but the content that was there didn't move). We'll be able to do a bunch of optimizations, including not throwing away the image cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a really good idea! Filed issue #20
I nitpick because I care, but this is a really nice PR! Great job! |
fa04501
to
cd67b68
Compare
@etiennesegonzac ready for final review. I added a feature to limit the imageCache by length as well as bytes. This is to prevent us storing too many strings when Blobs are not used. So by default we store up to |
* half of the cached images not currently | ||
* in use, then we checkImageCacheLimit() | ||
* once more. | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the approach!
Apart from that we're good to go! |
cd67b68
to
b34941c
Compare
@etiennesegonzac fixed and added test to prove. |
b34941c
to
f76a317
Compare
Implemented image caching solution (closes #14)
No description provided.