Dynamic memory management method and device

A technology of dynamic memory and management methods, applied in the field of memory management, can solve the problems affecting the performance of JavaScript applications, and achieve the effect of reducing the frequency of memory allocation/garbage collection, improving performance, and quickly searching

Inactive Publication Date: 2019-02-12
智器云南京信息科技有限公司
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a dynamic memory management method and device to effectively solve the technical

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
  • Dynamic memory management method and device
  • Dynamic memory management method and device
  • Dynamic memory management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation manners of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other accompanying drawings based on these drawings and obtain other implementations.

[0051]In order to keep the drawings concise, each drawing only schematically shows the parts related to the present invention, and they do not represent the actual structure of the product. In addition, to make the drawings concise and easy to understand, in some drawings, only one of the components having the same structure or function is schematically shown, or only one of them is marked. Herein, "a" not only means "only one", but also means "more than one".

[0052] like figu...

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 dynamic memory management method and device, wherein the dynamic memory management method comprises the following steps of S10 judging the current required memory managementtype; S21 if it is judged that a data object needs to be stored in the TypedArray, further judging whether there is an unstored space in the TypedArray, wherein a storage unit with a first preset length is pre-allocated in the TypedArray; if yes, skipping to step S31; according to the current data length in the TypedArray, storing the data object in a storage unit according to the storage order, and increasing the current data length by 1. The method manages the dynamic memory of JavaScript through TypedArray, greatly reduces the frequency of memory allocation/garbage collection by JavaScriptengine, and improves the performance of JavaScript.

Description

technical field [0001] The invention relates to the technical field of memory management, in particular to a dynamic memory management method and device. Background technique [0002] As a popular dynamic language, JavaScript is widely used in web application development. It is often used to add various dynamic functions to web pages to provide users with smoother and more beautiful browsing effects. Under normal circumstances, users do not need to care about the management of JavaScript memory. However, when the amount of data to be manipulated is large, the JavaScript engine will frequently perform memory allocation and garbage collection operations, thereby affecting the performance of JavaScript applications. Contents of the invention [0003] The purpose of the present invention is to provide a dynamic memory management method and device, which can effectively solve the technical problem in the prior art that the performance of JavaScript applications will be affected...

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
IPC IPC(8): G06F9/50G06F12/02
CPCG06F9/5016G06F9/5022G06F12/0246
Inventor 王海波刘向辉
Owner 智器云南京信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products