Blender Git Loki

Git Commits -> Revision fc7beac

Revision fc7beac by Jeroen Bakker (master)
September 24, 2021, 06:41 (GMT)
FileBrowser: Reduce Overhead Browsing Libraries.

When Browsing libraries the asset files were opened multiple times.
once to determine the needed groups to query and once for each
group to query the items in the group. For file browsing this makes sense
but for asset browsing this can be reduced.

This patch will load the asset files recursively and only opens them once.
Another change is that only the assets are requested and not filtered out
later in the process.

This patch is needed to simplify the library indexing. Where
we need access to the full library content.

## The numbers ##

Benchmarked by adding scenes of the spring open movie to the default
asset library. Refreshing the asset library would recursively load all the files
there.

| **8bc27c508a** | Processed 317 'directories/libraries' | 7.573986s |
| **Patch** | Processed 42 'directories/libraries' | 0.821013s |

{F10442811}

Reviewed By: mont29, Severin

Maniphest Tasks: T91406

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

Commit Details:

Full Hash: fc7beac8d6f45d9eca344ec4ae8879c2e73f0731
Parent Commit: 6a88f83
Lines Changed: +187, -89

3 Modified Paths:

/source/blender/blenloader/BLO_readfile.h (+2, -3) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+21, -12) (Diff)
/source/blender/editors/space_file/filelist.c (+164, -74) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021