Skip to content
Commit ce483e28 authored by Alexander Lohnau's avatar Alexander Lohnau
Browse files

Improve finding of plugins by id

Rather than listing all plugins in the given namespace and searching
through their metadata, the pluginId is saved during the registration
and we can search through it in logarithmic time.
Most importantly, we do not need to reparse the JSON. Caching it would
also be possible, but depending on the usecase it might depend in
unneeded memory being allocated.

Using a QHash instead of QMultiHash increases performance of the normal plugin searches too.
parent 342f9a05
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment