Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Static resource loading method and device, computer equipment and storage medium

A technology of static resources and storage media, which is applied in computing, resource allocation, multi-programming devices, etc. It can solve problems such as playback freezes, high cache occupation, and high requirements, and achieve the effect of reducing occupation and concurrency

Active Publication Date: 2020-05-26
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] These static resources can be read from persistent storage such as hard disk or flash memory when they are in use. This method occupies less memory, but has high requirements for system input / output (IO), and playback freezes when the bandwidth is insufficient.
[0004] These static resources can also be read into the cache (such as memory) at one time after the application is started. This method can avoid playback freezes, but the cache usage is high

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
  • Static resource loading method and device, computer equipment and storage medium
  • Static resource loading method and device, computer equipment and storage medium
  • Static resource loading method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0026] Definition of Terms:

[0027] Static resources mainly refer to the static resources that need to be called during the running of the application, such as audio, video, pictures, animation effects, etc. The storage method can be system files or databases, and the storage location can be local Persistent storage devices such as hard disks and flash memory can also be cloud storage systems such as object storage systems or database systems.

[0028] Application (Application): Refers to software written to meet the needs of users in certain scenarios, such as game applications, instant chat applications, social applications, video playback applications, audio playbac...

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 an application program static resource loading method and device, computer equipment and a storage medium. The method comprises: acquiring the trigger statistical information of static resources in a running process of an application program, wherein the static resources comprise a first static resource and a second static resource, and the trigger statistical information comprises first trigger statistical information corresponding to the first static resource and second trigger statistical information corresponding to the second static resource; caching at least partof the content of the first static resource into a cache space according to a first proportion corresponding to the first trigger statistical information; and caching at least part of the content of the second static resource into the cache space according to a second proportion corresponding to the second trigger statistical information and different from the first proportion. According to the method and the device, the occupation of a cache space can be reduced under the condition of ensuring smooth loading of static resources.

Description

technical field [0001] The present application relates to the technical field of application caching, and more specifically, to a method, device, computer equipment, and storage medium for loading application static resources. Background technique [0002] At present, applications usually use a large number of static resources during operation, such as audio files, video files, animation special effect files, and the like. [0003] These static resources can be read from persistent storage such as hard disk or flash memory when they are in use. This method occupies less memory, but has high requirements for system input / output (IO), and playback freezes when the bandwidth is insufficient. [0004] These static resources can also be read into the cache (such as memory) at one time after the application is started. This method can avoid playback freezes, but the cache usage is high. [0005] Therefore, how to reduce the cache usage while ensuring that the use of static resour...

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/445G06F9/50
CPCG06F9/44521G06F9/5022
Inventor 周小星李文威
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products