Addons search also search addon description #27356
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#27356
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%This patch makes the addons search also search the addon descriptions, allowing for more detailed searches. Very simple patch, only affects two lines.%%%
Changed status to: 'Open'
%%% Patch is fine.
But would like to hear your opinion Luca if this is useful. Assigning to you. %%%
%%%I prefer that more advanced search options cache results rather then updating them on draw.%%%
%%%But it's not that much to search in this case, and it's not slow. Caching could be better used elsewhere.%%%
Added subscriber: @mont29
Is this patch still relevant/alive?
Patch still applies and works. If nobody has objections to the patch as it is, I would like to see it applied to master.
Ok, but would do it a bit differently then (and as suggested by campbell, making a search cache could help here too, maybe build a set with all words from title + author + description when scanning addons, e.g.).
Will see that after release.
Added subscriber: @michaelknubben
If it doesn't impact the speed of searching, this seems like a definite improvement!
After investigating this, I don't think that performance is an issue.
I ran the attached performance test on all the addon author/name/description data, which runs the search a total of 20k times (10k with a findable search, 10k with a randomly generated string) and got the following result (I selected the worst-performing one):
timer.py
names.txt
descriptions.txt
authors.txt
Here is a quick cached implementation:
P147: (An Untitled Masterwork)
About speed: cached is about ten times quicker than uncached (~0.12sec instead of 1.2sec for 10K here, with all addons) - and without description search, uncached search is about five times slower (~0.7 secs)... So caching is worth it!
However, not sure clas var is OK here… Campbell, what do you say?
It makes sense to cache, but would be nice if we could throw away the cache too (when the UI is no longer active).
For this only - its not big deal, but rather each panel doesnt store cache for the entire blender session.
It could be made so the classes
__del__
method can handle that, though at the moment IIRC the panel is created for each draw.@Campbell yes, panels are recreated at each draw, that’s why I used the panel's class itself as storage… Not really good I know.
But anyway, I don't think we have any way to achieve a nice clearing of the cache currently, adding it to Space (if it was possible - afaik it is not currently) would not really solve it, since I think spaces are never freed once created (unless you close the related 'window', would work for userprefs, but…)?
I think its reasonable to have some way to free the cache at some point (when the window closes or the addons are navigated away from). but this means we have to add some way for the UI to handle cache.
We could look into a way to have some time-out which clears the cache, though currently Blender/Python thread stuff is risky business.
Changed status from 'Open' to: 'Archived'
No response on this in a long time, closing.