Skip to content
Commit 8c08dda5 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

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%
parent 7c0d629f
Pipeline #493477 failed with stage
in 5 minutes and 16 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment