Method and system for realizing flash player resource loading by using object pool

An object pool and player technology, applied in resource allocation, program loading/starting, instruments, etc., can solve problems affecting the loading speed of Flash players, long waiting time for resource loading, unreasonable use of memory, etc., to avoid the risk of overflow , Reasonable use of memory and the effect of reducing CPU usage

Active Publication Date: 2020-02-04
WUHAN DOUYU NETWORK TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the current live broadcast process, because the Flash player will repeatedly load a large amount of resources, and the process of repeatedly loading resources will occupy a large amount of CPU, which greatly increases the CPU usage and cannot use the memory reasonably, which in turn affects the Flash player. The loading speed is slow, which makes the waiting time for resource loading longer and the user experience is poor.

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 system for realizing flash player resource loading by using object pool
  • Method and system for realizing flash player resource loading by using object pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0025] see figure 1 As shown, the embodiment of the present invention provides a method for utilizing an object pool to realize resource loading of a Flash player, comprising the following steps:

[0026] Step S1: When initializing the Flash player program, create an object pool dictionary, which is used to store loaded resource objects; at the same time, set the maximum capacity of the object pool dictionary, and turn to step S2.

[0027] In this embodiment, the object pool dictionary uses key-value pairs (key-value) to store objects of resources that have been loaded; wherein, the name of the loaded resource is used as the key, and the name of the loaded resource is used as the key. The object object is used as the value, and the object object of the loaded resource has three attributes: resource data data, resource data usage time...

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 method and system for achieving Flash player resource loading by using an object pool and relates to the technical field of Flash player resource loading. The method comprises the steps that when a Flash player application is initialized, an object pool dictionary is created and the maximum capacity of the object pool dictionary is set; when resource loading is needed in the running process of the Flash player application, whether the resource needing to be loaded exists in the created object pool dictionary or not is judged, and if yes, the resource needing to be loaded is directly extracted in the current object pool dictionary for use and then the Flash player application continues to be executed; if not, the required resource is loaded and used, then the resource is added into the object pool dictionary, and whether the overflow of the maximum capacity occurs or not is checked, if yes, resource cleaning is conducted, and if not, the Flash player application continues to be executed. By means of the method and system for achieving Flash player resource loading, the utilization rate of a CPU can be reduced, the memory can be reasonably used, the loading speed of a Flash player can be effectively increased, and the user experience is good.

Description

technical field [0001] The invention relates to the technical field of resource loading of a Flash player, in particular to a method and system for realizing resource loading of a Flash player by utilizing an object pool. Background technique [0002] With the rapid development of Internet technology, more and more users can use terminals such as computers and mobile phones to watch online live video broadcasts through the Internet. Online video live broadcast refers to live video live broadcast service using Internet network resources. Through live video shooting and synchronous release to the network, users can see real-time on-site conditions on the network at the same time. [0003] At present, with the rapid development of Flash playback technology and the continuous acceleration of people's life rhythm, when users use the Flash player to watch live video, they have higher and higher requirements for the loading speed of the Flash player. However, in the current live b...

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/445G06F9/50
CPCG06F9/44521G06F9/5016
Inventor 潘龙
Owner WUHAN DOUYU NETWORK TECH CO LTD
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