Skip to content

Replace QTime with QDeadlineTimer in DocumentPrivate::getFreeMemory

QTime is quite inefficient and getFreeMemory sometimes gets called quite frequently. I found that upwards of 10% of CPU time was being spent inside of QTime in some cases. Besides being the recommended thing for this use case, QDeadlineTimer is a lot more efficient.

Merge request reports

Loading