"Andersson, Mats" wrote:
> It would be fun to run MindTerm with HotSpot on NT and
> compare performance to other "native" win32 clients such as SecureCRT
> and F-Secure (if someone does this I would be really interested in the
> results!).
That would be fun.
Multiple threads are never a performance win against tuned single-threaded
code which uses non-blocking I/O (unless you're exploiting multiple CPUs).
Of course they can be an engineering win since that single-threaded code
can get ugly. Then again, so can threads. Programs that block
unnecessarily in common situations aren't worth comparing against.
Actually, performance doesn't matter much for this application as long as
you don't mess up interactive response times (so watch out for
non-incremental GC). Most latency problems should be insignificant
compared to network delays. Perhaps forwarding massive amounts of data
could get interesting. Java should be OK for that assuming you reuse the
same allocated buffers over and over and your crypto is in native code,
although with compression turned on, it could get tricky.
Having said all that, TTSSH contains quite a few pointless and rather
entertaining optimizations --- lots of tricks in common paths to avoid
buffer copying, to avoid malloc/free, and to especially to avoid waiting
for round trips between client and server.
PS, don't use Hotspot, it's far from the fastest VM, especially for AWT.
Rob
--
[Robert O'Callahan http://www.cs.cmu.edu/~roc 6th year CMU CS PhD student
"I have seen the burden God has laid on men. He has made everything
beautiful in its time. He has also set eternity in the hearts of men; yet
they cannot fathom what God has done from beginning to end."
--- Ecclesiastes 3:10-11]