Improve word completion match collection performance
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%
Please register or sign in to comment