c-mex vs java

2 ビュー (過去 30 日間)
William
William 2014 年 4 月 11 日
コメント済み: lior 2015 年 6 月 11 日
How does the performance compare between writing code in c vs writing code in java.
I know I can get better performance with c theoretically but also at a much higher cost of writing the software and bugs being more common. Java has added support for things like NUMA aware threading and is adding support for HSA, transactional memory etc.
I know I can easily write some c and compile it as a mex file. It looks like I can also trivially write a java class and compile that also to use in MATLAB.
If I run a java class that I have compiled does it lose any performance running on the jvm inside MATLAB vs running outside of MATLAB?
I have been writing code professionally for about 15 years now and I can handle java or c I am just interested in feedback on which direction makes more sense. I would like to speed up my simulations beyond how they are performing already in MATLAB but I also want them to be correct.
  1 件のコメント
lior
lior 2015 年 6 月 11 日
William, I am having the same question. Did you found an answer?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by