Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for storing and recycling JavaScript object

A technology of object storage and object recycling, which is applied in the field of memory management, and can solve the problems of increasing JavaScript-specific memory to general memory usage, digital TV middleware running unsmoothly, and not being recyclable, etc.

Active Publication Date: 2017-09-08
SHENZHEN IPANEL TECH LTD
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, JavaScript-specific memory usually stores JavaScript objects in the form of heap memory, and multiple JavaScript objects can usually be stored in one heap memory. JavaScript objects cannot be recycled, which affects the release of this heap memory and increases the occupation of JavaScript-specific memory to general memory, which in turn leads to the problem that digital TV middleware does not run smoothly

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
  • Method and device for storing and recycling JavaScript object
  • Method and device for storing and recycling JavaScript object
  • Method and device for storing and recycling JavaScript object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0052] figure 1 It is a flow chart of a JavaScript object storage method provided by the embodiment of this application.

[0053] Such as figure 1 As shown, the method includes:

[0054] S101. Determine the JavaScript object generated by the JavaScript engine in the process of processing the JavaScript script;

[0055] S102. Determine whether the size of the JavaScript object reaches a preset object threshold; if it is determined that the size of the JavaScript object reaches the preset object threshold, perform step S103;

[0056] S103. Allocate a heap memory only for storing the JavaScript object from the general memory to the JavaScript-specific memory, and the heap memory is set with an exclusive flag;

[0057] Optionally, a size of heap memory only used to store the JavaScript object is allocated to the JavaScript dedicated memory from the general memory, so as to meet the storage requirement of the JavaScript object.

[0058] S104. Store the JavaScript object in the ...

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 embodiment of the application provides a method and device for storing and recycling a JavaScript object. Whether the size of the JavaScript object reaches a preset object threshold is determined; and if the size reaches the threshold, a heap memory will be distributed from universal memories for a JavaScript dedicated memory, wherein the heap memory is equipped with an exclusive mark. The mode of storing the JavaScript object into the heap memory ensures separate storage of the JavaScript object of which the size reaches the preset object threshold in a heap memory. Hence, during recycling of the JavaScript object, recycling of the heap memory occupied by the JavaScript object and recycling of heap memories occupied by other JavaScript objects will not influence each other. In this way, universal memories are saved; and running efficiency of digital TV middleware is increased.

Description

technical field [0001] The invention relates to the technical field of memory management, in particular to a JavaScript object storage and recovery method and device. Background technique [0002] Digital TV middleware is a software that runs on a set-top box or digital TV. The main functions of digital TV middleware include Web application presentation, TV program reception and descrambling, and local program playback. The client browsing program (browser) of the World Wide Web service can send various requests to the World Wide Web server, and interpret, display and play the hypertext information and various multimedia data formats sent from the server. main module. [0003] JavaScript is a literal scripting language (everything in JavaScript can be regarded as a JavaScript object), and its interpreter is called JavaScript engine (JavaScript engine is a virtual machine that specializes in JavaScript scripts, usually attached to the browser browser), which is part of the ...

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): G06F12/02G06F9/455
CPCG06F9/45529G06F12/0253
Inventor 徐佳宏刘瑞顺朱吕亮
Owner SHENZHEN IPANEL TECH LTD
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