We have recently ported our application (www.lyx.org) to Qt (from
xforms) and were rather disappointed to find the final binary size on
UNIX to be much larger for Qt frontend. So I did some investigating.

I do not know how prevalent this is, but at least qvaluelist.h has FAR
too much code in its header. Don't believe me ? Here is the sizes of a
file converted from using two QStringList instances for filling combo
boxes, into using an explicit string literal array + ->insertStrList :

moz qt2 164 size QDocument.o.bak QDocument.o
   text    data     bss     dec     hex filename
  58532     908       0   59440    e830 QDocument.o.bak
  37364     964       0   38328    95b8 QDocument.o

That's 21Kb of sheer bloat !!

LyX people: please stay away from the Qt API unless necessary.
Qt people: is anything planned to fix this ? Last I checked modern
computers, icache horkage was more of a killer than a few function
calls.

regards
john
-- 
Khendon's Law: If the same point is made twice by the same person,
the thread is over.

Reply via email to