Skip to content
Snippets Groups Projects
Commit c51900d0 authored by Jim Chen's avatar Jim Chen
Browse files

Bug 1258470 - 3. Small optimizations in ThumbnailHelper; r=nalexander

This patch includes a small memory optimization of using ArrayList and
`volatile int` for storing the pending thumbnails list and pending
width, instead of using LinkedList and AtomicInteger, respectively.

The patch also fixes a possible race condition due to calling
processNextThumbnail outside of a lock. Now it must be called inside a
lock and its name is changed to reflect that.
parent 3013200d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment