Re: FIX 4.4 coding in Java or c++? which is better?
Jason Chung <>
19 Jun 2008 9:26AM ETHello,
Thanks for responding. I do agree with you. I guess C++ definitely is better than java because c++ is more powerful than java(of course, the price is memory leak issue if ever occurred).
I actually compare the time of the STL's map and java's hashmap (no multi-threading involve in this case as assumption).
It seems to me java is faster than c++ to look for key or insert a new key/value for it assume we have 300k line of strings which 40% is duplicated(market that collected using bloomberg API in visual c++).
Please correct me if I am wrong in above testing.
We do pay for the overhead for the garbage collection in java....
Anyway, for now, I am doing something basic OMS thing.... But, maybe in future I will need the c++ for system driver.
I will use java native to deal with c++ if i ever reach that point.
I guess C++ definitely is more powerful than java.
Regards,
Jason
> I am think C++ will have a better performance than Java do. Program
> written in C++ is much pure than any other languages, one level up from
> OS, and also gain more benefits from the robusted support standard
> library (STL) functions. You may get more base functions from java
> library, if you are not using pure core java. But I think there will be
> some over heads.
>
> I prefer C++ solution, if try to do it on a Unix box.
>
> Changpeng Yu FT Computer Solutions
>
> http://www.eptop.com/FIX/FixExpress.htm