summaryrefslogtreecommitdiff
path: root/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2016-09-14 16:16:10 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2016-10-10 12:36:59 +0000
commit380d756a03346e5bbb83101f49ed6f6696c42c6a (patch)
tree132a7ac7897466d1645729b2b83399dcc49f48cb /src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp
parenta85d5c7222dc131b885c7eaeb0a14f8d25299f2f (diff)
downloadqt-creator-380d756a03346e5bbb83101f49ed6f6696c42c6a.tar.gz
Clang: Hook up supportive translation unit on first edit
Parsing happens rotationally on the translation units. The recently parsed translation unit is used for completion jobs while the older version is used for parse jobs. Advantages: A1. A completion job cannot be blocked anymore by currently running parse job. A2. Faster triggering of parse jobs. A reparse was triggered about 1650ms after the last keystroke. This is down to 500ms now since we do not have a blocking translation unit for the completion anymore. Disadvantages: D1. Memory consumption is doubled for an edited document. This could be addressed by suspending the second translation unit after some time of inactivity. D2. Setup of the supportive translation unit takes some time. Change-Id: I958c883c01f274530f5482c788c15cd38d6f4c3e Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp')
0 files changed, 0 insertions, 0 deletions