L
Luc The Perverse
This is somewhat related to my previous post - but I like to keep separate
questions separate.
What is the best case scenario for latency between a program telling a
dialog to display, and it displaying? Is there a way to streamline or
optimize it? (For instance, I imagine having the dialog already drawn and
then just showing it, as opposed to generating an entire new dialog would be
much quicker.)
I don't understand why it takes so long for a natively compiled (with
Excelsior) application, which is less than 100 kb, and AFAIK, does not
require a separate JVM to be loaded, to display a simple dialog. The
latency is on the order of 2-3 seconds (on my machine, an AMD 1700+ 512 MB
RAM Win XP SP2, 7200 RPM 8 MB Cache HD, GF FX 6600 (or something))
If there is some windows initialization library that can be gotten around
that would be nice. Or god forbid an ApplicationShowDelay (parody of
MenuShowDelay - at least I hope it is a parody)
Rant follows:
It just doesn't make any friggin sense. My seek times on my hard drive are
less than half a second (by 1-2 orders of magnitude?), there is no need for
virtual memory for a 100 kb application, and my processor and GPU run
millions of operations a second. Where is this latency coming from?
Now I do note that I have no such latency if I map CTRL+ALT+C to the
calculator. If this is an imperfection or problem in the compiled
Excelsior JVM or with Java in general then there has got to be a work
around - because once it gets going, Java is fast. Maybe we just got to
get it going before I want to use it.
Note: I am not unreasonable - it doesn't need to load in 1.2 ms. I want to
be able to press my hotkey and begin typing without worrying that the window
is not yet in focus - which will probably not happen in less than 100 ms.
Even if the window is not done rendering, but it remembers and queues my
keystrokes - I can live with that as well. What I am having a problem with
is having to consciously wait before typing.
questions separate.
What is the best case scenario for latency between a program telling a
dialog to display, and it displaying? Is there a way to streamline or
optimize it? (For instance, I imagine having the dialog already drawn and
then just showing it, as opposed to generating an entire new dialog would be
much quicker.)
I don't understand why it takes so long for a natively compiled (with
Excelsior) application, which is less than 100 kb, and AFAIK, does not
require a separate JVM to be loaded, to display a simple dialog. The
latency is on the order of 2-3 seconds (on my machine, an AMD 1700+ 512 MB
RAM Win XP SP2, 7200 RPM 8 MB Cache HD, GF FX 6600 (or something))
If there is some windows initialization library that can be gotten around
that would be nice. Or god forbid an ApplicationShowDelay (parody of
MenuShowDelay - at least I hope it is a parody)
Rant follows:
It just doesn't make any friggin sense. My seek times on my hard drive are
less than half a second (by 1-2 orders of magnitude?), there is no need for
virtual memory for a 100 kb application, and my processor and GPU run
millions of operations a second. Where is this latency coming from?
Now I do note that I have no such latency if I map CTRL+ALT+C to the
calculator. If this is an imperfection or problem in the compiled
Excelsior JVM or with Java in general then there has got to be a work
around - because once it gets going, Java is fast. Maybe we just got to
get it going before I want to use it.
Note: I am not unreasonable - it doesn't need to load in 1.2 ms. I want to
be able to press my hotkey and begin typing without worrying that the window
is not yet in focus - which will probably not happen in less than 100 ms.
Even if the window is not done rendering, but it remembers and queues my
keystrokes - I can live with that as well. What I am having a problem with
is having to consciously wait before typing.