Quote from sim03:
Unfortunately, I don't have a specific solution... but, if you program, you might enjoy this read:
Why Java Will Always Be Slower than C++
It is an interesting read but it is also outdated. Java has template now.
Quote from sim03:
Unfortunately, I don't have a specific solution... but, if you program, you might enjoy this read:
Why Java Will Always Be Slower than C++
Quote from Lawrence Chan:
I've worked with quite a number of java based order entry applications like TWS, JTrader, etc.
One thing I notice is that during fast markets these few days, they get very CPU intensive.
Would like to know if anyone tried ways to make them run smoother in general?
Thanks.
I would also not return to C++/MFC. If you still have any doubts pick up a copy of 'Killer Game Programming in Java' as it covers most of the java and performance debate issues very completely. The book also has a several complete source code examples of game programs that are very fast rendering. Details on how to use faster graphic hardware apis are included in the book, but so far I have not found them to be necessary.I have several years of experience in MFC and C++. I have also done some internet development in Java, very little GUI but a lot of servlet and database stuff.
In the past year Java 1.6 has received a lot of good press on how performance was improved. I installed Java 1.6 and did notice an improvement in my Interactive Brokers TWS application. I purchased a copy of 'Killer Game Programming in Java' by Davison to see just how fast I could get a Java app and possibly a GUI running. I wanted a trading application that was designed around a 'game' pattern more than a standard 'word processor' pattern.
Interactive Brokers's API is in java so having a single language for IB and the user interface is attractive. One of the demo apps in the Java book was used as a GUI shell. In my trading front end I get data from an MySQL database and throw it on the screen. The app shows frames per second and I can maintain 15 FPS filling the screen with dense data bars and calculating indicators. My CPU load remains below 10%. I have no interest in pushing the CPU to get more FPS but it could be done. I cannot act on anything faster than 15 FPS!!! This prototype demo app is drawing data from a SQL query which I thought would slow everything down.
It will take me some time to move everything from MFC/C++ to java but my new projects will be done in Java.
Save yourself some trouble use Java, everything is free, and the documentation is very good.
Quote from Lawrence Chan:
I promised to report the results I got from using Java 1.6 with JTrader 6.
Comparing to Java 1.4 or 1.5, the overall CPU load is indeed reduced (10% or so) and the responsiveness of JTrader gets better.
Quote from Lawrence Chan:
I promised to report the results I got from using Java 1.6 with JTrader 6.
Comparing to Java 1.4 or 1.5, the overall CPU load is indeed reduced (10% or so) and the responsiveness of JTrader gets better.