A method and apparatus for pre-processing and packaging class files. Embodiments remove duplicate information elements from a set of class files to reduce the size of individual class files and to prevent redundant resolution of the information elements. Memory allocation requirements are determined in advance for the set of classes as a whole to reduce the complexity of memory allocation when the set of classes are loaded. The class files are stored in a single package for efficient storage, transfer and processing as a unit. In an embodiment, a pre-processor examines each class file in a set of class files to locate duplicate information in the form of redundant constants contained in a constant pool. The duplicate constant is placed in a separate shared table, and all occurrences of the constant are removed from the respective constant pools of the individual class files. During pre-processing, memory allocation requirements are determined for each class file, and used to determine a total allocation requirement for the set of class files. The shared table, the memory allocation requirements and the reduced class files are packaged as a unit in a multi-class file.

Метод и прибор для препроцессирования и упаковывая архивов типа. Воплощения извлекают duplicate элементы информации от комплекта архивов типа для уменьшения размера индивидуальных архивов типа и для того чтобы предотвратить резервное разрешение элементов информации. Требования к распределения памяти обусловлены заранее для комплекта типов в целом уменьшить сложность распределения памяти когда комплект типов нагружен. Архивы типа хранятся в одиночном пакете для эффективных хранения, перехода и обрабатывать как блок. В воплощении, препроцессор рассматривает каждый архив типа в комплекте архивов типа для того чтобы обнаружить местонахождение duplicate информацию in the form of резервные константы, котор содержат в постоянн бассеине. Duplicate константа помещена в отдельно, котор делят таблице, и все возникновения константы извлечутся от соответственно постоянн бассеинов индивидуальных архивов типа. Во время препроцессирования, требования к распределения памяти обусловлены для каждого архива типа, и использованы для того чтобы обусловить полное требование к распределения для комплекта архивов типа. , котор делят таблица, требования к распределения памяти и уменьшенные архивы типа упакованы как блок в архиве мулти-tipa.

 
Web www.patentalert.com

< Method and apparatus for pre-processing and packaging class files

< Method and apparatus for pre-processing and packaging class files

> Method for optimizing locks in computer programs

> JIT/compiler Java language extensions to enable field performance and serviceability

~ 00062