Cargando…
Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine
JNI in the Android platform is often observed with low efficiency and high coding complexity. Although many researchers have investigated the JNI mechanism, few of them solve the efficiency and the complexity problems of JNI in the Android platform simultaneously. In this paper, a hybrid polylingual...
Autores principales: | , , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Hindawi Publishing Corporation
2014
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4082837/ https://www.ncbi.nlm.nih.gov/pubmed/25110745 http://dx.doi.org/10.1155/2014/785434 |
_version_ | 1782324292927619072 |
---|---|
author | Huang, Yukun Chen, Rong Wei, Jingbo Pei, Xilong Cao, Jing Prakash Jayaraman, Prem Ranjan, Rajiv |
author_facet | Huang, Yukun Chen, Rong Wei, Jingbo Pei, Xilong Cao, Jing Prakash Jayaraman, Prem Ranjan, Rajiv |
author_sort | Huang, Yukun |
collection | PubMed |
description | JNI in the Android platform is often observed with low efficiency and high coding complexity. Although many researchers have investigated the JNI mechanism, few of them solve the efficiency and the complexity problems of JNI in the Android platform simultaneously. In this paper, a hybrid polylingual object (HPO) model is proposed to allow a CAR object being accessed as a Java object and as vice in the Dalvik virtual machine. It is an acceptable substitute for JNI to reuse the CAR-compliant components in Android applications in a seamless and efficient way. The metadata injection mechanism is designed to support the automatic mapping and reflection between CAR objects and Java objects. A prototype virtual machine, called HPO-Dalvik, is implemented by extending the Dalvik virtual machine to support the HPO model. Lifespan management, garbage collection, and data type transformation of HPO objects are also handled in the HPO-Dalvik virtual machine automatically. The experimental result shows that the HPO model outweighs the standard JNI in lower overhead on native side, better executing performance with no JNI bridging code being demanded. |
format | Online Article Text |
id | pubmed-4082837 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2014 |
publisher | Hindawi Publishing Corporation |
record_format | MEDLINE/PubMed |
spelling | pubmed-40828372014-08-10 Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine Huang, Yukun Chen, Rong Wei, Jingbo Pei, Xilong Cao, Jing Prakash Jayaraman, Prem Ranjan, Rajiv ScientificWorldJournal Research Article JNI in the Android platform is often observed with low efficiency and high coding complexity. Although many researchers have investigated the JNI mechanism, few of them solve the efficiency and the complexity problems of JNI in the Android platform simultaneously. In this paper, a hybrid polylingual object (HPO) model is proposed to allow a CAR object being accessed as a Java object and as vice in the Dalvik virtual machine. It is an acceptable substitute for JNI to reuse the CAR-compliant components in Android applications in a seamless and efficient way. The metadata injection mechanism is designed to support the automatic mapping and reflection between CAR objects and Java objects. A prototype virtual machine, called HPO-Dalvik, is implemented by extending the Dalvik virtual machine to support the HPO model. Lifespan management, garbage collection, and data type transformation of HPO objects are also handled in the HPO-Dalvik virtual machine automatically. The experimental result shows that the HPO model outweighs the standard JNI in lower overhead on native side, better executing performance with no JNI bridging code being demanded. Hindawi Publishing Corporation 2014 2014-06-12 /pmc/articles/PMC4082837/ /pubmed/25110745 http://dx.doi.org/10.1155/2014/785434 Text en Copyright © 2014 Yukun Huang et al. https://creativecommons.org/licenses/by/3.0/ This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. |
spellingShingle | Research Article Huang, Yukun Chen, Rong Wei, Jingbo Pei, Xilong Cao, Jing Prakash Jayaraman, Prem Ranjan, Rajiv Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine |
title | Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine |
title_full | Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine |
title_fullStr | Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine |
title_full_unstemmed | Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine |
title_short | Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine |
title_sort | hybrid polylingual object model: an efficient and seamless integration of java and native components on the dalvik virtual machine |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4082837/ https://www.ncbi.nlm.nih.gov/pubmed/25110745 http://dx.doi.org/10.1155/2014/785434 |
work_keys_str_mv | AT huangyukun hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine AT chenrong hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine AT weijingbo hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine AT peixilong hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine AT caojing hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine AT prakashjayaramanprem hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine AT ranjanrajiv hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine |