摘要

Based on the design theory of Java native interface in Dalvik virtual machine, some key system interfaces in the mechanism were found that during the execution they may cause a large number of redundant lookup operation and lots of CPU-execution time occupation. To solve this kind of problem, a data indexing mechanism was proposed, which was based on the Hash techniques. The system interfaces could avoid the above problem effectively by equipping with the indexing mechanism, which also could improve the native code's searching efficiency for Java resources, when the hardware resources were sufficient. Experimental results showed that the operating speed was improved nearly 30% using the testing procedures proposed.

全文