Apache Cordova is a framework that lets you build mobile applications using HTML5, CSS and Javascript for different mobile platforms. But because the applications you build with this framework live in a layer on the top of the native development tools of the targeted platform, they're slower than equivalent applications that are written using the native development tools. As is mentioned here:
However, the use of Web-based technologies leads some Apache Cordova applications to run slower than native applications with similar functionality.[27] Adobe Systems warns that applications may be rejected by Apple for being too slow or not feeling "native" enough (having appearance and functionality consistent with what users have come to expect on the platform). This can be an issue for some Apache Cordova applications.d
So it seems a good option if you could use some native code in a Cordova application. One way of doing this seems to be devloping a plugin. But again there is a catch(from the last link):
All the main Cordova API features are implemented as plugins
So any plugin you devlop, will have the same problem as the equivalent code in Cordova.
So, is there any way to mix Cordova with some native code that doesn't make the native code as slow as the part built using Cordova?
Thanks