Blender Git Commit Log

Git Commits -> Revision 0fd1e6a

Revision 0fd1e6a by Jeroen Bakker (master)
August 25, 2021, 13:59 (GMT)
T90908: Reduce loading times when extracting thumbnails from Blendfiles.

Previously when loading an thumbnails for an asset the whole file was
read. Reason this was done was perhaps a future idea to load
all thumbnails inside a blendfile in a single go. This was never implemented
and currently unneeded disk and cpu cycles was spend with finding out what
preview to load.

This patch adds an early break when the thumbnail that the caller is
interested in has been found. This improves the thumbnail extraction
when looking into large files.

Reviewed By: mont29

Maniphest Tasks: T90908

Differential Revision: https://developer.blender.org/D12312

Commit Details:

Full Hash: 0fd1e6a5f43df8b0f5382c07975c0d031bbbb506
Parent Commit: 5a0ec23
Lines Changed: +103, -60

3 Modified Paths:

/source/blender/blenloader/BLO_readfile.h (+3, -0) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+91, -27) (Diff)
/source/blender/imbuf/intern/thumbs_blend.c (+9, -33) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021