Unlock instant, AI-driven research and patent intelligence for your innovation.

A graph rendering method and system for memory objects

A chart and object technology, applied in the field of JavaScript, can solve the problem that memory and performance cannot meet complex business, and achieve the effect of reducing CPU usage and memory load

Active Publication Date: 2020-06-23
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] This application provides a graph rendering method and system for memory objects, which can solve the problem that the memory and performance of JavaScript under the existing react framework cannot satisfy the complex business problem

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
  • A graph rendering method and system for memory objects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] The inventors of the present application found that:

[0028] Every time you draw a page, you need to redefine and instantiate the chart once, which will lead to an increase in the number of instances, resulting in unprovoked consumption of memory, which can easily lead to memory overflow.

[0029] In view of the above situation, the inventor proposes that the graph can be instantiated only once, and when the graph is called for the second or Nth time, the instanced graph can be obtained from the memory for rendering and various operations of the graph.

[0030] Therefore, this embodiment provides a graph rendering method for a memory object, which mainly includes the following operations:

[0031] When an operation initiated against a chart in the page is received, if the chart has been instantiated, the global object corresponding to the chart is extracted from the memory through the chart's identifier, and the call is made according to the received operation and the ...

Embodiment 2

[0052] This embodiment also provides a graph rendering system for memory objects, which mainly includes the following two units.

[0053] The first unit, when receiving the operation initiated for the chart in the page, if the chart has been instantiated, extracts the global object corresponding to the chart from the memory through the identification of the chart;

[0054] The second unit, according to the received operation and the identification of the chart, invokes the rendering chart method function in the global object corresponding to the chart to implement the operation processing of the chart.

[0055] In addition, on the basis of the above system architecture, it can also include: a configuration unit, which mainly pre-establishes a react component with a .jsx file suffix in the page memory, and newly defines the div tag of html in the render function corresponding to the react component, It is used to store the identifier of the chart, and configure the render funct...

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 discloses a chart rendering method and a system of a memory object, relating to JavaScriptr technology. The invention discloses a chart rendering method of a memory object, which comprises the following steps: when an operation initiated for a chart in a page is received, if the chart has been instantiated, the global object corresponding to the chart is extracted from the memory through the identification of the chart; if the global object is instantiated, the global object corresponding to the chart is extracted from the memory; According to the received operation and the identification of the chart, the rendering chart method function in the global object corresponding to the chart is called to realize the operation processing of the chart. A technical scheme of that present application simplifies the frequency of render, dom, and instantiation operation, thereby reducing CPU utilization and memory load of JavaScript under a react framework.

Description

technical field [0001] The invention relates to JavaScript, in particular to a diagram rendering scheme based on js memory objects. Background technique [0002] JavaScript is a scripting language that belongs to the network and is widely used in web application development. It is often used to add various dynamic functions to web pages and provide users with a smoother and more beautiful browsing effect. In terms of memory processing, JavaScript is handled by its own memory garbage collection mechanism. When the memory is not in use, it will be automatically recycled by the garbage collector, which enables developers to pay more attention to the writing of business logic in development. However, with the continuous complexity of business, the development of single-page applications, mobile HTML5 applications and Node.js programs, etc., the memory problems in JavaScript caused by memory problems, such as stalls and memory overflows, have become more and more frequent. Optim...

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 Patents(China)
IPC IPC(8): G06F9/451G06F9/448
CPCG06F9/4482G06F9/451
Inventor 郭泉宁苗辉
Owner GUIZHOU BAISHANCLOUD TECH CO LTD