Skip to content

Improve minimap performance

Waqar Ahmed requested to merge work/minimap-perf into master

Minimap leads to slowdown when opening a new document in Kate. The main reason behind the slowness was two calls to updatePixmap()

  • First when minimap itself is constructed
  • Second when view constructs, it updates config and sets whether to show minimap or not and creates QObject::connect to refresh minimap leading to a second call

Other changes include using QBrush directly instead of QColor as QPainter will convert it to QBrush internally.

Merge request reports