View refreshing method and view refreshing device

A view and partial refresh technology, which is applied in the field of network applications, can solve problems such as high refresh occupation of system resources, refresh page freezes, etc., to achieve smooth refresh, reduce occupancy rate, and ensure integrity

Active Publication Date: 2015-03-18
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a view refresh method that can reduce the system resource usage and make the pa

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
  • View refreshing method and view refreshing device
  • View refreshing method and view refreshing device
  • View refreshing method and view refreshing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0025] Such as figure 1 As shown, it is a flowchart of a view refreshing method in an embodiment. The view refreshing method is applied to a mobile terminal, and can occupy less system resources such as memory and CPU. The mobile terminal can be a mobile phone, a personal digital assistant, or a handheld computer. The view refresh method includes steps:

[0026] Step S102, obtaining a refresh request for the list in the view.

[0027] Specifically, the refresh request for the list in the view can be generated by sliding the list in the view, or by scrolling the scroll bar in the view, or by mov...

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 relates to a view refreshing method and a view refreshing device. The method comprises the following steps of acquiring a refreshing request on a list in a view; adding refreshing tasks of the list to a queue established in advance according to the refreshing request; sequentially extracting the refreshing tasks from the queue and loading the refreshing tasks by using a defined amount of threads to obtain data on loading of the refreshing tasks; and refreshing the view according to the loaded refreshing tasks. The data of the loaded refreshing tasks are stored in a weak reference manner. The cost on establishment of a new thread of each refreshing task is reduced due to the defined amount of threads, the data which are stored in the weak reference manner can be recycled at any time, internal storage space occupied by the data can be released, the occupancy rate of system resources such as an internal storage device and a CPU (central processing unit) is reduced, pages are refreshed smoothly, and the integrity of the data is guaranteed with the aid of the queue.

Description

technical field [0001] The invention relates to network application technology, in particular to a view refreshing method and device. Background technique [0002] Due to insufficient resources and low performance of the mobile terminal, when an application program is installed on the mobile terminal, the memory occupied by the application program and the utilization rate of a CPU (Central Processing Unit, central processing unit) must be considered. It is a common way to present application icons in the form of a list. Each time the list scrolls a line, the icons need to be refreshed in batches. There are three traditional refresh methods: the first is to load the icon directly in the main thread, the reference of the icon is not processed, and the strong reference is used by default; the second is to immediately start a thread to load the icon independently, and the reference of the icon is not processed , the default is to use strong references; the third is to use 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
IPC IPC(8): G06F9/445G06F9/50
Inventor 关盛裕许杰锋
Owner TENCENT TECH (SHENZHEN) 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