Supercharge Your Innovation With Domain-Expert AI Agents!

Java object serialization method and system

A java object and object technology, applied in the field of remote invocation of Java applications, can solve the problems of low performance, lack of performance of serialization library, inconvenient use, etc., to achieve the effect of improving performance, increasing speed, and avoiding performance loss

Active Publication Date: 2016-02-17
FUJIAN STAR NET COMM
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The Java language itself has a serialization mechanism, but because of inconvenient use and low performance, there are many third-party serialization libraries on the market
But none of these serialization libraries are powerful enough

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Java object serialization method and system
  • Java object serialization method and system
  • Java object serialization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] see Figure 1 to Figure 3 Shown, a kind of java object serialization method of the present invention comprises the following steps:

[0027] Step 1, analyze a java object in the development program, form an object graph after gathering other java objects that have a reference relationship with the resolved java object, and combine the object graph with the root object of the object graph (that is, the object graph The source of the analysis) information is stored together as metadata information in the metadata information collection of the root object, and subsequent use does not need to be analyzed; wherein, for a java object, itself is not isolated. Usually a java object may also have references to other objects. If you want to fully serialize a java object, you need to serialize all its associated java objects. Such a comprehensive object system is called an object graph.

[0028] Step 2. Make object instances of all java objects that have reference relationships...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a java object serialization method. The method comprises the steps of 1, analyzing one java object in development procedures, forming an object diagram after centralizing other java objects which have reference relationships with the analyzed java object, and storing the object diagram and the information of a root object of the object diagram into a metadata information set of the root object by regarding the object diagram and the information of the root object of the object diagram together as metadata information; 2, carrying out object instance processing on all java objects which have reference relationships in the metadata information set of the root object, and storing into an object instance set; 3, numbering all object instances in the object instance set, marking a root object instance of the root object as 0, and numbering others from the number after 0 according to the sequence of the reference relationships of the object instances; 4, storing all object instances into a binary data structural body after being serialized according to a number sequence. According to the java object serialization method provided by the invention, the serialization performance is improved, the deserialization speed is increased, and the performance loss caused by Java reflection is avoided.

Description

technical field [0001] The invention relates to the technical field of Java application remote invocation, in particular to a method and system for serializing java objects. Background technique [0002] In some distributed development programs, for the convenience of use, it is often necessary to transmit Java objects as data in binary form. Some local application scenarios also need to save java objects in memory to disk files in binary form. This act of converting Java objects to binary is called serialization. The Java language itself has a serialization mechanism, but because it is inconvenient to use and has low performance, many third-party serialization libraries have appeared on the market. But none of these serialization libraries are powerful enough. Contents of the invention [0003] One of the technical problems to be solved by the present invention is to provide a method for serializing java objects, which improves the performance of serialization, improve...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/30
Inventor 林斌
Owner FUJIAN STAR NET COMM
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More