summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythoneditor.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2022-04-25 15:50:15 +0200
committerEike Ziller <eike.ziller@qt.io>2022-04-27 07:39:24 +0000
commitc865fe50f2c07e8c6623f0a3cb447630606dd35e (patch)
tree7148d01d4d3526e42ba26d02ba020b612966e3b0 /src/plugins/python/pythoneditor.cpp
parent74b1623acdcd04fc34812560dbcf8136833b9f3a (diff)
downloadqt-creator-c865fe50f2c07e8c6623f0a3cb447630606dd35e.tar.gz
Mimetypes v3: Improve performance
When looking up mimetypes by glob or magic, we may not add a mimetype if it was overwritten by another provider that did not find a match. The patch that implemented that was very inefficient, because a huge list of "handled mimetypes" was created that needed to be checked, every time a mimetype was determined. Instead inform each provider about their overridden mimetypes once after loading the mimetypes. Amends 98b1e82d2b7000c61b7a58f36318ae8c06c248c7 Fixes: QTCREATORBUG-27319 Change-Id: I409856c272c334798d7a71ce590ff2d4f69c71a1 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/python/pythoneditor.cpp')
0 files changed, 0 insertions, 0 deletions