M
Martin
I am using graphics as backgrounds for forms,buttons,labels etc.
The question is: is it faster to load all graphics from files on app start
or
to use it embeded (places in editor during design).
Reason for my question is that application has 5mb, while without graphics
it has cca 400kb.
Graphic files (bmps) take about 200kb (in program, they are repeated many
times, ie almost all labels (around 200) have same background image)).
Also, can JIT compiling be turned off and how (I would like the program to
be either compiled on my machine, then not modified, or if not possible,
when it is installed on client machine)?
This .NET has embarassed me several times with it slowness.
It takes a while to open a form when application is started (I have avoided
this by using the same form, programmatically created so there is only one
lag), database handling is quite slow (several simple executeScalar commands
take 1-2 seconds), listview is unusable, datagrid is slow if paint is
overriden. On the other hand, graphical possibilites have pushed my
programms ahead of my competitors whenever buyers require presentations and
every time I have sold a program it was mainly due to great looks (not
mine).
If it was not for this graphical advantage, old VB would be better solution
(faster,lighter).
The question is: is it faster to load all graphics from files on app start
or
to use it embeded (places in editor during design).
Reason for my question is that application has 5mb, while without graphics
it has cca 400kb.
Graphic files (bmps) take about 200kb (in program, they are repeated many
times, ie almost all labels (around 200) have same background image)).
Also, can JIT compiling be turned off and how (I would like the program to
be either compiled on my machine, then not modified, or if not possible,
when it is installed on client machine)?
This .NET has embarassed me several times with it slowness.
It takes a while to open a form when application is started (I have avoided
this by using the same form, programmatically created so there is only one
lag), database handling is quite slow (several simple executeScalar commands
take 1-2 seconds), listview is unusable, datagrid is slow if paint is
overriden. On the other hand, graphical possibilites have pushed my
programms ahead of my competitors whenever buyers require presentations and
every time I have sold a program it was mainly due to great looks (not
mine).
If it was not for this graphical advantage, old VB would be better solution
(faster,lighter).