D18208: Use reserve on QVector<Phase2Data>

Martin Flöser <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
graesslin created this revision.
graesslin added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
graesslin requested review of this revision.

REVISION SUMMARY
  We know that the maximum size is the number of windows in stacking
  order. It might be that some are skipped as they are not ready for
  painting, but overall it's better to reserve a little bit too much
  memory than to have a growing QVector.

TEST PLAN
  Compiles

REPOSITORY
  R108 KWin

BRANCH
  phase2-reserve

REVISION DETAIL
  https://phabricator.kde.org/D18208

AFFECTED FILES
  scene.cpp

To: graesslin, #kwin
Cc: kwin, kvanton, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.