executable size thoughts
- From: Olivier Sessink <olivier lx student wau nl>
- To: gtk-app-devel-list gnome org
- Subject: executable size thoughts
- Date: Tue, 21 May 2002 10:15:18 +0200
Hi all,
I noticed that including pixmaps increases the executable size quite a
lot. Most need loading only when building the toolbars (some also for
building dialogs, but that's a minority).
Loading them runtime from png files would not help performance very much
because of the amount of fopen()'s involved.
An option would be to create a library with pixmaps, and use dlopen() to
load them all.
But is this an issue at all? how does Linux/FreeBSD/etc work with
executables? will code with inline pixmaps be discarded from memory after
loading or not? and if so, is it important to make it one big block with
inline images and how do I do so?
(same discussion holds for 'initialize configuration to default', it is
also only used during startup)
thanks,
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]