Commit bd64553
committed
SearchService: improve enabled lookup performance
I didn't benchmark it, but this should be much faster for two reasons:
1. We only ask the PluginService for the Searcher's PluginInfo when
an already-persisted value is not found in the PrefService.
2. We use the getPlugin(Class pluginClass, Class pluginType) method,
which is more performant because it needs to dig through only the
list of plugins of the given type. Previously, we were using
getPlugin(Class pluginClass) which needed to dig through every
PluginInfo on every request.1 parent b85c969 commit bd64553
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
0 commit comments