Skip to content
  • Nikolai Kosjar's avatar
    Clang: Stop needless completion detail calculation · 0651eddb
    Nikolai Kosjar authored
    
    
    ...on the plugin side by removing a left over calculation. We construct
    the detail in the virtual ClangAssistProposalItem::detail(), that is, on
    demand.
    
    Test:
     1. Open src/plugins/clangstaticanalyzer/unit-tests/qt-essential-includes.pro
     2. Open main.cpp
     3. Complete in the main function
    
    Measured with a timer in IpcReceiver::codeCompleted.
    
    On Linux, for 20637 completion items:
     Before: 119ms (avg)
        Now: 81ms (avg)
       Gain: 32%
    
    Change-Id: I9617cb9651a8367c31cd40e965175b5b37e10730
    Reviewed-by: default avatarTim Jenssen <tim.jenssen@qt.io>
    Reviewed-by: default avatarAlessandro Portale <alessandro.portale@qt.io>
    0651eddb