Static linking against Qt

Bugs and Suggestions in XnView MP or XnConvert MP which have been resolved.

Moderator: XnTriq

Post Reply
jgutierrez
Posts: 50
Joined: Tue Nov 15, 2005 9:25 am
Contact:

Static linking against Qt

Post by jgutierrez » Wed Dec 29, 2010 3:56 pm

Probably if XnViewMP is statically linked against Qt, only used functions will be included in the executable, meaning that it will launch faster, require less memory, and less space on disk (also ZIP distribution will also be smaller).

User avatar
xnview
Author of XnView
Posts: 31881
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Static linking against Qt

Post by xnview » Wed Dec 29, 2010 8:32 pm

I'm not sure that app will speeder with less memory used if statically linked...
Pierre.

jgutierrez
Posts: 50
Joined: Tue Nov 15, 2005 9:25 am
Contact:

Re: Static linking against Qt

Post by jgutierrez » Wed Dec 29, 2010 8:59 pm

I think that only used functions will included in the executable, meaning that unless XnViewMP is using the 100% of the Qt provided code, it will be reduced, at least in terms of disk usage and ZIP distribution.

As for launching speed, probably static linking is more efficieint, if we sum to that that probably the total code to load will be smaller, is thould be some gains.

Post Reply