perf(search): decode large extension results off the UI isolate

This commit is contained in:
zarzet
2026-09-06 02:34:49 +07:00
parent 856139f908
commit 7b87a8ee15
2 changed files with 117 additions and 1 deletions
+4 -1
View File
@@ -1826,7 +1826,10 @@ class PlatformBridge {
'options': optionsJson,
'request_id': requestId,
});
final decoded = _decodeMapListResult(result, 'customSearchWithExtension');
final decoded = await _decodeMapListResultAsync(
result,
'customSearchWithExtension',
);
if (generation == _lookupCacheGeneration &&
_customSearchInFlight[cacheKey]?.requestId == requestId) {
_putMemoryCachedMapList(