Item14447: _readKeyValues is a dog
Priority: Normal
Current State: Waiting for Release
Released In: 2.2.0
Target Release: minor
If a
SEARCH gets a lot of results, and then queries the formfields in those results, then each hit topic has to be loaded. This makes loading topics from disc quite critical. During this load, parsing of the meta-data is done by Foswiki::Serialise::Embedded. The critical code section here is _readKeyValues, which uses regexes in a clumsy and slow way. This can be improved on quite a bit.
Architecturally, the separation between searching a topic and querying it's formfields needs to be looked at more closely.
--
CrawfordCurrie - 28 Jul 2017
As this has only been checked in to master, this is waiting for 2.2.0 to be released ... instead of waiting for n/a
--
MichaelDaum - 20 Aug 2018