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

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

A technology for static resources and computers, applied in computing, resource allocation, multi-programming devices, etc., can solve the problems of playback lag, high cache occupancy, and high requirements, and achieve the effect of reducing occupancy and concurrency.

Active Publication Date: 2021-07-20
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 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, apparatus, computer equipment and storage medium
  • Static resource loading method, apparatus, computer equipment and storage medium
  • Static resource loading method, apparatus, 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 present application discloses a method, device, computer device and storage medium for loading static resources of an application program. The method includes: obtaining trigger statistics information of static resources during the running of the application program. The static resources include the first static resource and the second static resource. For static resources, the triggering statistical information includes first triggering statistical information corresponding to the first static resource and second triggering statistical information corresponding to the second static resource; Caching at least part of the content of the second static resource into the cache space; and caching at least part of the content of the second static resource into the cache space according to a second ratio corresponding to the second trigger statistics and different from the first ratio. The above method and device can reduce the occupancy of cache space while 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 Patents(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