Skip to content

Improve word completion match collection performance

Waqar Ahmed requested to merge work/wordcompl-faster into master

The main theme here is to reduce allocations. This is done in 2 main ways:

  • Instead of storing QString in the set, store QStringView. Our lines live in the document so taking a string view should be safe
  • Reuse the existing m_matches buffer to return the matches

Overall performance is increased by 20-30%

Merge request reports