CN106547482B - Method and device for saving memory by utilizing buffer - Google Patents

Method and device for saving memory by utilizing buffer Download PDF

Info

Publication number
CN106547482B
CN106547482B CN201610903860.5A CN201610903860A CN106547482B CN 106547482 B CN106547482 B CN 106547482B CN 201610903860 A CN201610903860 A CN 201610903860A CN 106547482 B CN106547482 B CN 106547482B
Authority
CN
China
Prior art keywords
buffer
buffer mode
display
refreshing
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610903860.5A
Other languages
Chinese (zh)
Other versions
CN106547482A (en
Inventor
陈云库
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201610903860.5A priority Critical patent/CN106547482B/en
Publication of CN106547482A publication Critical patent/CN106547482A/en
Application granted granted Critical
Publication of CN106547482B publication Critical patent/CN106547482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements

Abstract

The invention provides a method and a device for saving memory by utilizing buffering, comprising the following steps: s101, identifying a refreshing category of an application; s102, prompting the buffer mode corresponding to the refreshing category to a user; s103, the user switches and saves the buffer mode according to the prompt. The invention saves the use of the memory by setting different buffer modes for different applications.

Description

Method and device for saving memory by utilizing buffer
Technical Field
The application relates to a method and a device for saving memory by utilizing a buffer.
Background
Nowadays, intelligent terminal equipment (such as smart phones and tablets) is already an article for daily use, and the memory usage rate of the mobile phone directly influences the smoothness of using the mobile phone by a user. When the android system is rendering a screen, some applications can consider using single buffering and do not need to use double buffering by using a caching technology, so how to identify and guide a user to use different buffering modes for different applications is a current problem.
Disclosure of Invention
The present application is directed to a method and apparatus for saving memory using buffering.
The invention provides a method for saving memory by utilizing a buffer, which comprises the following steps of
S101, identifying a refreshing category of an application;
s102, prompting the buffer mode corresponding to the refreshing category to a user;
s103, the user switches and saves the buffer mode according to the prompt.
Preferably, the refresh categories are partial refresh and full screen refresh.
Preferably, the buffer mode is a single buffer mode and a double buffer mode.
Preferably, the single buffer mode consists of a display and a display buffer from which the display reads data.
Preferably, in the double buffer mode, a custom buffer area is added in the single buffer mode, and the custom buffer area is used for storing the calculated intermediate result into the custom buffer area for storage.
The invention also provides a device for saving the memory by utilizing the buffer, which comprises
The identification module is used for identifying the refreshing category of the application;
the prompting module is used for prompting the buffer mode corresponding to the refreshing category to a user;
and the switching module is used for enabling the user to switch and store the buffer mode according to the prompt.
Preferably, the refresh categories are partial refresh and full screen refresh.
Preferably, the buffer mode is a single buffer mode and a double buffer mode.
Preferably, the single buffer mode consists of a display and a display buffer from which the display reads data.
Preferably, in the double buffer mode, a custom buffer area is added in the single buffer mode, and the custom buffer area is used for storing the calculated intermediate result into the custom buffer area for storage.
The invention saves the use of the memory by setting different buffer modes for different applications.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of a method for saving memory by utilizing a buffer according to the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in FIG. 1, the present invention provides a method for saving memory by using a buffer, comprising S101 identifying a refresh class of an application; s102, prompting the buffer mode corresponding to the refreshing category to a user; s103, switching and storing the buffer mode according to the prompt by a user; further, the refresh categories are local refresh and whole screen refresh. The buffer mode is a single buffer mode and a double buffer mode. And if the refreshing type is local refreshing, the method is suitable for a single buffer mode, and if the refreshing type is whole screen refreshing, the method is suitable for a double buffer mode. In another embodiment of the invention, the single buffer mode consists of a display and a display buffer from which the display reads data. However, in the double buffer mode, a custom buffer is added in the single buffer mode, so that the calculated intermediate result is stored in the custom buffer. Because partial refresh is easily implemented in the single buffer mode and full screen refresh is easily implemented in the double buffer mode, we choose different buffer modes for buffering in different refresh categories or modes according to different applications.
The invention also protects a device for saving the memory by utilizing the buffer, which comprises an identification module for identifying the refreshing category of the application; the prompting module is used for prompting the buffer mode corresponding to the refreshing category to a user; and the switching module is used for enabling the user to switch and store the buffer mode according to the prompt. Preferably, the refresh categories are partial refresh and full screen refresh. The buffer mode is a single buffer mode and a double buffer mode. Here, the refresh class is applied to the single buffer mode if the refresh class is a partial refresh, and the double buffer mode if the refresh class is a full screen refresh. The single buffer mode consists of a display and a display buffer from which the display reads data. The double buffer mode is added with a custom buffer zone under the single buffer mode, and the custom buffer zone is used for storing the calculated intermediate result into the custom buffer zone for storage. The invention saves the use of the memory by setting different buffer modes for different applications.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (2)

1. A method for saving memory by using buffering, characterized in that: comprising
S101, identifying the refresh category of the application, wherein the refresh category is local refresh and whole screen refresh;
s102, prompting a buffer mode corresponding to the refreshing type to a user, wherein the buffer mode is a single buffer mode and a double buffer mode, the single buffer mode consists of a display and a display buffer zone, the display reads data from the display buffer zone, and the double buffer mode is added with a custom buffer zone in the single buffer mode and is used for storing a calculated intermediate result in the custom buffer zone;
s103, the user switches and saves the buffer mode according to the prompt.
2. An apparatus for saving memory by using buffering, characterized in that: comprising
The identification module is used for identifying the refreshing category of the application, wherein the refreshing category is local refreshing and whole screen refreshing;
the prompting module is used for prompting the buffer mode corresponding to the refreshing type to a user, wherein the buffer mode is a single buffer mode and a double buffer mode, the single buffer mode consists of a display and a display buffer area, the display reads data from the display buffer area, and the double buffer mode is added with a custom buffer area in the single buffer mode and is used for storing a calculated intermediate result in the custom buffer area;
and the switching module is used for enabling the user to switch and store the buffer mode according to the prompt.
CN201610903860.5A 2016-10-17 2016-10-17 Method and device for saving memory by utilizing buffer Active CN106547482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610903860.5A CN106547482B (en) 2016-10-17 2016-10-17 Method and device for saving memory by utilizing buffer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610903860.5A CN106547482B (en) 2016-10-17 2016-10-17 Method and device for saving memory by utilizing buffer

Publications (2)

Publication Number Publication Date
CN106547482A CN106547482A (en) 2017-03-29
CN106547482B true CN106547482B (en) 2023-12-26

Family

ID=58369001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610903860.5A Active CN106547482B (en) 2016-10-17 2016-10-17 Method and device for saving memory by utilizing buffer

Country Status (1)

Country Link
CN (1) CN106547482B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495665A (en) * 2020-03-19 2021-10-12 斑马智行网络(香港)有限公司 Image display method, image display device, electronic equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5742788A (en) * 1991-07-26 1998-04-21 Sun Microsystems, Inc. Method and apparatus for providing a configurable display memory for single buffered and double buffered application programs to be run singly or simultaneously
CN102158560A (en) * 2011-04-20 2011-08-17 复旦大学 Service deployment optimization-oriented synergistic tendency double-buffering pool in cloud computing environment
CN105867832A (en) * 2015-01-19 2016-08-17 张维加 User-and-application-oriented method and device for accelerating computer and intelligent device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120284544A1 (en) * 2011-05-06 2012-11-08 Microsoft Corporation Storage Device Power Management
US9858899B2 (en) * 2013-06-13 2018-01-02 Microsoft Technology Licensing, Llc Managing transitions of adaptive display rates for different video playback scenarios

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5742788A (en) * 1991-07-26 1998-04-21 Sun Microsystems, Inc. Method and apparatus for providing a configurable display memory for single buffered and double buffered application programs to be run singly or simultaneously
CN102158560A (en) * 2011-04-20 2011-08-17 复旦大学 Service deployment optimization-oriented synergistic tendency double-buffering pool in cloud computing environment
CN105867832A (en) * 2015-01-19 2016-08-17 张维加 User-and-application-oriented method and device for accelerating computer and intelligent device

Also Published As

Publication number Publication date
CN106547482A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
EP3040985B1 (en) Electronic device and method for voice recognition
KR102162836B1 (en) Apparatas and method for supplying content according to field attribute
KR102414300B1 (en) Operating Module for display and operating Method, and electronic device supporting the same
CN104123111B (en) The display mode switching method and device of MIPI DSI
CN105308672A (en) Electronic device and method for video decoding
KR20150032554A (en) Energy-efficient transmission of content over a wireless connection
KR20150092588A (en) Method and apparatus for controlling display of flexible display in a electronic device
KR102151135B1 (en) Method for managing power and electronic device thereof
KR102206053B1 (en) Apparatas and method for changing a input mode according to input method in an electronic device
CN105578184A (en) Key-frame animation generation apparatus and method
CN105075241A (en) Electronic device and method for processing image
KR20150022335A (en) Method and apparatus for performing communication of electronic device in mobile communicatino system
KR102160473B1 (en) Electronic device and method for controling volume
CN102232290A (en) Method and device for adjusting screen brightness of electronic equipment
KR102134420B1 (en) Apparatas and method for measuring a charge of location in the way of low power in an electronic device
EP3001300A1 (en) Method and apparatus for generating preview data
CN104267801A (en) Power consumption and bandwidth reducing method and system
KR20160064734A (en) Method for charging control and an electronic device thereof
CN109271587A (en) A kind of page generation method and device
KR102137686B1 (en) Method for controlling an content integrity and an electronic device
CN104332032A (en) Study reminding method and wearable device
CN103200308A (en) Method and system of turning off alarm clock and mobile terminal
CN106547482B (en) Method and device for saving memory by utilizing buffer
KR102183397B1 (en) Image processing method and electronic device implementing the same
KR20160001359A (en) Method for managing data and an electronic device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant