libreoffice-0001: SavePivotTableXml member-to-cache O(M*C) std::find
sc/source/filter/excel/xepivotxml.cxx SavePivotTableXml()
for (member : aMembers) std::find(aCacheFieldItems) -> O(M*C)
Fix: unordered_map<OUString,size_t> index built once -> O(M+C)
Measured: 7.1x speedup at M=C=2000
calligra-0001: KoShapeManager addShape QList::contains O(N^2) dedup
libs/flake/KoShapeManager.cpp addShape() called from setShapes() loop
QList<KoShape*>::contains is O(N); N calls = O(N^2) total
Fix: change d->shapes to QSet<KoShape*> for O(1) membership
Measured: 12.6x speedup at N=5000
MOADs 0002-0005: CLEAN for both targets (see README.md per defect)
Both unit tests: PASS