diff options
author | Jeroen Bakker <jbakker> | 2021-09-24 09:39:58 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-09-24 09:41:40 +0300 |
commit | fc7beac8d6f45d9eca344ec4ae8879c2e73f0731 (patch) | |
tree | 25017e4d06a859a1513cdbecaf05e036a9fc4182 /source/blender/editors/interface/tree_view.cc | |
parent | 6a88f83d679f281d7adb3798ab4770069a63c2da (diff) |
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
Diffstat (limited to 'source/blender/editors/interface/tree_view.cc')
0 files changed, 0 insertions, 0 deletions