Java智能卡解析优化方法

来源 :北京航空航天大学学报 | 被引量 : 0次 | 上传用户:tower2008
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
针对复杂的传统Java智能卡指令解析问题,结合Applet的部署特点,提出了指令预解析的概念;给出了转换后的Applet文件(CAP,Converted Applet file)中导入组件、常数池和导出组件的预解析优化存储结构及包注册表结构,使用定长存储结构替代原有的变长存储结构以加快查找过程,引入了导出组件辅助索引表以加快外包类的解析过程;设计了基于优化后组件的静态域、静态方法和类访问字节码指令的快速解析流程,将解析算法的时间复杂度降为常数阶;在Applet下载过程中通过预解析来生成优化后的组件存储结构,在执行过程中依据快速解析流程来完成静态域、静态方法和类对象的快速访问,从而缩短了Applet运行时的解析时间.测试结果表明,在不改变标准Applet下载、运行流程的情况下,该方法有效地减少了卡内存储器的访问次数,缩短了解析算法的执行时间,提高了Applet执行的整体性能. Aiming at the problem of complex traditional Java smart card instructions parsing, combined with the deployment characteristics of Applets, the concept of instruction pre-parsing is proposed. Pre-parsing is given in the Converted Applet file (CAP) Parsing and optimizing the storage structure and the package registry structure, using the fixed-length storage structure to replace the original variable-length storage structure to speed up the search process, and introducing the auxiliary component index table to speed up the outsourcing class parsing process; Static domain, static method and class access bytecode instruction fast resolution process, the analytical complexity of the algorithm is reduced to a constant order; in the Applet download process through pre-analysis to generate an optimized component storage structure, in the implementation process Based on the fast parsing process, the static domain, static methods and quick access to the class object are completed, which shortens the parsing time of the applet runtime.The test results show that the method can effectively reduce the time without changing the standard applet download and running process The number of visits to the card memory, shorten the analysis of the implementation of the algorithm, improve the implementation of the entire Applet Body performance.
其他文献
航空灭火是利用飞机对森林火灾进行预防和扑救的一种森林防火手段,是森林防火的重要组成部分和措施,也是世界公认的先进防、扑火手段。航空灭火具有机动灵活性和“发现早、行
根据《关于印发2009年度全国会计专业技术资格考试考务日程安排的通知》(会考[2008]46号)的规定,我国2009年度全国会计专业技术资格考试继续使用2008年度考试大纲。近日全国
桃红柳绿的初春时节,我们驱车来到风景秀丽的江郎山下,走访了久负盛名的江山市江郎乡余家坞村。 汽车刚进村口,只见一棵粗壮碧绿的百年古樟挺立在路旁,形如黄山“迎客松”,
重庆谈判时,年仅37岁的王炳南被委任为毛泽东的秘书,协助处理谈判期间的一切工作。有一次,王炳南陪毛泽东去见陈立夫,他想,同陈立夫这种人可怎么谈呢?一见面,毛主席先以回忆
台湾中央研究院研究员、台湾中山大学教授、“亚洲与世界社”主任魏萼博士应中国社会科学院邀请,于今年年初访问了北京。魏萼先生曾任台湾经济部顾问、国民党中央文化工作会
李大钊为何未参加一大李大钊同志是我国最早的马克思主义者和共产主义者,但他并没有参加党的第一次全国代表大会。李大钊同志当时正领导北京教育界进行“索薪”斗争。当时反
磁控溅射是七十年代发展起来的一种新型溅射技术。由于沉积速度快、镀覆面积大、镀膜均匀,以及镀膜的附着性较好等优点,磁控溅射成了一种应用愈来愈广泛的涂覆技术,被用来在
3MZ2406磨床是轴承套圈内端面磨床,原测量采用双界限电接触器。该装置存在以下不足。 (1)其中三块弹簧片中间一片折断,操作者不易观察;这样磨削出的套圈返修率和废品率较高
11月18日,中注协陈毓圭秘书长应邀出席国富浩华国际成立50周年年会闭幕晚会并致词。陈秘书长在致词中表示,注册会计师行业是市场经济的基础设施,是市场诚信链条的一环,在当前
当本期杂志付梓之际,2009年“两会”尘埃落定,代表与委员已然忙碌于各自的工作岗位上。 When the issue of this issue of magazines came to an end, in 2009, “the two s