QTextDocument: avoid relocations
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 10 Oct 2013 22:12:27 +0000 (00:12 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 23 Dec 2013 18:37:41 +0000 (19:37 +0100)
commite14503d353de7246a1d6e36894dd77bb32c4af3b
tree6cfe22641462ad190598e878bbf8988a7d463575
parent883444f16b22a020821e9e699da6277b946fa501
QTextDocument: avoid relocations

Hand-roll a string table here, since there's opportunity for
sharing string data between string entries.

Effects on Linux AMD64 GCC 4.9-trunk release stripped:
  text:   -88B
  data:   -64B
  relocs:  -5

Maintainability is hurt somewhat, but it is expected that the
contents of this string table do not change much, so the
overall effect is still very low.

Change-Id: I2a22da4c8548c53ef31c33319b4652f3cb6f62f5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/gui/text/qtextdocument.cpp