aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/libpyside/pysidestaticstrings.cpp
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2024-05-17 19:05:40 +0200
committerChristian Tismer <tismer@stackless.com>2024-05-21 13:51:34 +0200
commitb829abcc7b2e9fcdb027e653a6a52cdb0706de11 (patch)
treece3760f135b263c79a1588b2a7cc14b696104612 /sources/pyside2/libpyside/pysidestaticstrings.cpp
parent6aa42b05ad9af0c92c43e696ea1d66612b42da4d (diff)
LazyInit: Optimize access to non-existing types by cachingHEADdev
The function loadLazyClassesWithName() is no more repeatedly called, because some non-existent types produce permanent overhead. Instead, we ask a negative cache and therefore shortcut repeated failures. The cache is extremely efficient since it re-uses the same mapping as the converters in question. Thanks to frkleint. Fixes: PYSIDE-2749 Task-number: PYSIDE-2404 Change-Id: I675fe5047afe3773b66c8619aa043e66586d48a4 Pick-to: 6.7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/libpyside/pysidestaticstrings.cpp')
0 files changed, 0 insertions, 0 deletions