フィルターのクリア

Why does the matlab exported java package(.jar) run faster than matlab exported c library (.so)?

2 ビュー (過去 30 日間)
Pingmin Fenlly Liu
Pingmin Fenlly Liu 2017 年 12 月 19 日
編集済み: Pingmin Fenlly Liu 2017 年 12 月 19 日
Hello!
We just export our MatLab algorithm files(*.m) to Java package(*.jar) and C library(*.so) by using MatLab R2014b's "deploytool" on Ubuntu 16.04 desktop. But when We deploy them to our CentOS 7 server, our Java program calling the exported java package runs faster than our C program calling the exported C library. Their time cost comparison is about 2.48s vs 3.54s. We just count the time cost by getting the system time stamp before and after calling the key exported interface(e.g: mlfParMyInterface()) and computing their diff. We use the parfor in our exported interface. Actually, it has same comparision result to call the serial computing interface(e.g: mlfMyInterface()) of one-by-one.
So how could this happen between the exported Java and C library?
Thanks a lot!

回答 (0 件)

カテゴリ

Help Center および File Exchange平台和许可证 についてさらに検索

Community Treasure Hunt

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

Start Hunting!