shannah / Java-Objective-C-Bridge

A thin bridge that allows for two-way communication from Java to Objective-C.
123 stars 25 forks source link

Use JNA direct mapping to improve performance #20

Open airsquared opened 4 years ago

airsquared commented 4 years ago

JNA's docs say that using direct mapping can "improve performance substantially". Is it possible to take advantage of direct mapping in this project?

shannah commented 4 years ago

Interesting. It's possible that it would improve performance, and it looks like it would be pretty easy to change (just change the Runtime interface to a class, and add native to the methods). Before doing this, it's probably a good idea to generate some benchmarks so we know if we're making things better at all.