CN105843752A - Method and device for distributing memory of mobile terminal for caching image data - Google Patents
Method and device for distributing memory of mobile terminal for caching image data Download PDFInfo
- Publication number
- CN105843752A CN105843752A CN201610186693.7A CN201610186693A CN105843752A CN 105843752 A CN105843752 A CN 105843752A CN 201610186693 A CN201610186693 A CN 201610186693A CN 105843752 A CN105843752 A CN 105843752A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- image data
- memory
- space
- free memory
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0893—Caches characterised by their organisation or structure
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and device for distributing a memory of a mobile terminal memory for caching image data, and relates to the field of mobile communication, wherein the method comprises following steps of starting system broadcast to monitor the memory space of the mobile terminal; obtaining the remaining memory space of the mobile terminal based on a preset rule; and distributing the remaining memory space for caching images according to a preset proportion. The image data cache space is reasonably distributed, the waste rate of the memory space is effectively reduced, and the scheme for distributing the image data cache space of the memory of the mobile terminal memory is optimized.
Description
Technical field
The present invention relates to moving communicating field, be specifically related to a kind of method and device distributing mobile terminal memory cache image data.
Background technology
Along with popularizing and along with the explosive growth of China mobile number of users and popularizing of mobile terminal of mobile terminal especially smart mobile phone, mobile terminal has become as carry-on communication tool indispensable in people's daily life and digit aid, and increasing people uses mobile terminal Internet access to browse internet information.Generally, the data such as user, when browsing internet information by mobile terminal, needs data cached in the internal memory of mobile terminal, such as picture.
Generally, the spatial cache of different types of data is distributed according to the memory size of mobile terminal.In prior art, it is used for caching image data according to fixing accounting according to the memory size of mobile terminal.Such as, in what mobile terminal was demarcated dispatch from the factory when saving as n G, usual fixed allocation is n/N G to the space of caching image data, and wherein, n is the natural number more than 0, and N is positive integer, and G is the unit of memory headroom size.But, along with the use of mobile terminal, the memory headroom of mobile terminal can diminish, when the space of fixed allocation n/N G is used for caching picture, can cause mobile terminal internal memory is used as other caching or space of processing becomes the least, the phenomenon such as this can cause mobile terminal card to pause, deadlock.
How in the case of mobile terminal internal memory is fixing, reasonable distribution image data spatial cache, reduces memory headroom waste and becomes problem demanding prompt solution.
Summary of the invention
The technical problem to be solved in the present invention is reasonable distribution image data spatial cache, reduces memory headroom waste.
To this end, according to first aspect, the embodiment of the present invention provides a kind of method distributing mobile terminal memory cache image data, comprises the steps:
Start system broadcasts and monitor the memory headroom of mobile terminal;The free memory space of mobile terminal is obtained based on preset rules;It is assigned as caching picture by preset ratio by free memory space according to preset ratio.
The free memory space being preferably based on preset rules acquisition mobile terminal includes: obtain the free memory space of mobile terminal according to prefixed time interval.
The free memory space being preferably based on preset rules acquisition mobile terminal includes: obtain the triggering signal for characterizing statistics free memory;According to the free memory space triggering signal acquisition mobile terminal.
Preferably, trigger signal by arrange application tool in the terminal to server request cache image data time solicited message provide.
Preferably, preset ratio is between 1/6~1/10.
According to second aspect, the embodiment of the present invention provides a kind of device distributing mobile terminal memory cache image data, including:
Radio unit, monitors the memory headroom of mobile terminal for starting system broadcasts;Remaining space acquiring unit, for obtaining the free memory space of mobile terminal based on preset rules;Allocation unit, for being assigned as caching picture by preset ratio by free memory space according to preset ratio.
Preferably, allocation unit includes: the first allocation unit, for obtaining the free memory space of mobile terminal according to prefixed time interval.
Preferably, allocation unit includes: trigger element, for obtaining the triggering signal for characterizing statistics free memory;Second allocation unit, for according to the free memory space triggering signal acquisition mobile terminal.
Preferably, trigger signal by arrange application tool in the terminal to server request cache image data time solicited message provide.
Preferably, preset ratio is between 1/6~1/10.
Technical solution of the present invention, has the advantage that
The method and device of the distribution mobile terminal memory cache image data that the embodiment of the present invention provides, owing to obtaining the free memory space of mobile terminal based on preset rules, then, is assigned as caching picture by preset ratio by free memory space according to preset ratio.Thus, reasonable distribution image data spatial cache, efficiently reduce memory headroom waste rate, optimize mobile terminal Memory Allocation picture data buffer storage Space Program.
Accompanying drawing explanation
In order to be illustrated more clearly that the specific embodiment of the invention or technical scheme of the prior art, the accompanying drawing used required in detailed description of the invention or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram distributing mobile terminal memory cache image data in the embodiment of the present invention;
Fig. 2 is a kind of principle of device block diagram distributing mobile terminal memory cache image data in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme is clearly and completely described, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
As long as just can be combined with each other additionally, technical characteristic involved in invention described below difference embodiment does not constitutes conflict each other.
For reasonable distribution image data spatial cache, efficiently reduce memory headroom waste rate, present embodiment discloses a kind of method distributing mobile terminal memory cache image data, refer to Fig. 1, for the method flow chart, the method for this distribution mobile terminal memory cache image data comprises the steps:
Step S100, starts system broadcasts and monitors the memory headroom of mobile terminal.Generally, the memory storage of mobile terminal is connected with the controller signals of mobile terminal and carries out data interaction, therefore, it can listen to the memory headroom of mobile terminal by the way of starting system broadcasts.
Step S200, obtains the free memory space of mobile terminal based on preset rules.Along with the use of mobile terminal, especially accessing internet information, and after installation application tool, the memory headroom of mobile terminal can change.Generally, the memory headroom of mobile terminal can diminish, certainly, when the application tool in unloading mobile terminal or after removing the junk data being buffered in mobile terminal internal memory, the memory headroom of mobile terminal also can become big.The remaining space of mobile terminal can be obtained based on preset rules.In one embodiment, can obtain the free memory space of mobile terminal according to prefixed time interval, in the present embodiment, alleged prefixed time interval can be constant duration, it is also possible to be the different time interval pre-set.In another kind of embodiment, the triggering signal for characterizing statistics free memory can be obtained, then, according to the free memory space triggering signal acquisition mobile terminal.In a particular embodiment, trigger signal to be initiated by the trigger event of mobile terminal, it is also possible to by arrange application tool in the terminal to server request cache image data time solicited message provide.
Step S300, is assigned as caching picture by preset ratio by free memory space according to preset ratio.In a particular embodiment, preset ratio, generally this preset ratio can be empirically set and can be arranged between 1/6~1/10, preferably 1/8.
It should be noted that, in a preferred embodiment, after execution of step S300, it is also possible to return and perform step S100, thus realize the continuous monitoring to mobile terminal memory headroom, more preferably to realize adjusting the space of distribution caching image data according to mobile terminal free memory Spatial distributions.
The present embodiment also discloses a kind of device distributing mobile terminal memory cache image data, refer to Fig. 2, and this distribution mobile terminal memory cache image data device includes: radio unit 100, remaining space acquiring unit 200 and allocation unit 300, wherein:
Radio unit 100 monitors the memory headroom of mobile terminal for starting system broadcasts;Remaining space acquiring unit 200 for obtaining the free memory space of mobile terminal based on preset rules;Allocation unit 300 is for being assigned as caching picture by preset ratio by free memory space according to preset ratio.
In a preferred embodiment, allocation unit 300 includes: the first allocation unit, for obtaining the free memory space of mobile terminal according to prefixed time interval.
In a preferred embodiment, allocation unit 300 includes: trigger element, for obtaining the triggering signal for characterizing statistics free memory;Second allocation unit, for according to the free memory space triggering signal acquisition mobile terminal.
In a preferred embodiment, trigger signal by arrange application tool in the terminal to server request cache image data time solicited message provide.
In a preferred embodiment, preset ratio is between 1/6~1/10.
The method and device of the distribution mobile terminal memory cache image data that the present embodiment provides, owing to obtaining the free memory space of mobile terminal based on preset rules, then, is assigned as caching picture by preset ratio by free memory space according to preset ratio.Thus, reasonable distribution image data spatial cache, efficiently reduce memory headroom waste rate, optimize mobile terminal Memory Allocation picture data buffer storage Space Program.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the form of the embodiment in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware.And, the present invention can use the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The present invention is to describe with reference to method, equipment (system) and the flow chart of computer program according to embodiments of the present invention and/or block diagram.It should be understood that can be by the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces the manufacture including command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to perform sequence of operations step on computer or other programmable devices to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides the step of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame for realization.
Obviously, above-described embodiment is only for clearly demonstrating example, and not restriction to embodiment.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here without also cannot all of embodiment be given exhaustive.And the obvious change thus extended out or variation still in the protection domain of the invention among.
Claims (10)
1. the method distributing mobile terminal memory cache image data, it is characterised in that include
Following steps:
Start system broadcasts and monitor the memory headroom of mobile terminal;
The free memory space of described mobile terminal is obtained based on preset rules;
According to preset ratio, described free memory space is assigned as caching figure by described preset ratio
Sheet.
2. the method distributing mobile terminal memory cache image data as claimed in claim 1, its
Being characterised by, described free memory space based on the preset rules described mobile terminal of acquisition includes:
The free memory space of described mobile terminal is obtained according to prefixed time interval.
3. the method distributing mobile terminal memory cache image data as claimed in claim 1, its
Being characterised by, described free memory space based on the preset rules described mobile terminal of acquisition includes:
Obtain the triggering signal for characterizing statistics free memory;
Free memory space according to mobile terminal described in described triggering signal acquisition.
4. the method distributing mobile terminal memory cache image data as claimed in claim 3, its
Being characterised by, described triggering signal is by being arranged in described mobile terminal application tool to server request
Solicited message during caching image data provides.
5. the distribution mobile terminal memory cache image data as described in claim 1-4 any one
Method, it is characterised in that described preset ratio is between 1/6~1/10.
6. the device distributing mobile terminal memory cache image data, it is characterised in that including:
Radio unit, monitors the memory headroom of mobile terminal for starting system broadcasts;
Remaining space acquiring unit, for obtaining the free memory of described mobile terminal based on preset rules
Space;
Allocation unit, for being divided described free memory space by described preset ratio according to preset ratio
Adapted makees caching picture.
7. the device distributing mobile terminal memory cache image data as claimed in claim 6, its
Being characterised by, described allocation unit includes:
First allocation unit, for obtaining the free memory of described mobile terminal according to prefixed time interval
Space.
8. the device distributing mobile terminal memory cache image data as claimed in claim 6, its
Being characterised by, described allocation unit includes:
Trigger element, for obtaining the triggering signal for characterizing statistics free memory;
Second allocation unit, for the free memory according to mobile terminal described in described triggering signal acquisition
Space.
9. the device distributing mobile terminal memory cache image data as claimed in claim 8, its
Being characterised by, described triggering signal is by being arranged in described mobile terminal application tool to server request
Solicited message during caching image data provides.
10. the distribution mobile terminal memory cache image data as described in claim 6-9 any one
Device, it is characterised in that described preset ratio is between 1/6~1/10.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610186693.7A CN105843752A (en) | 2016-03-29 | 2016-03-29 | Method and device for distributing memory of mobile terminal for caching image data |
PCT/CN2016/097121 WO2017166666A1 (en) | 2016-03-29 | 2016-08-29 | Method and apparatus for allocating memory of mobile terminal for caching image data, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610186693.7A CN105843752A (en) | 2016-03-29 | 2016-03-29 | Method and device for distributing memory of mobile terminal for caching image data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105843752A true CN105843752A (en) | 2016-08-10 |
Family
ID=56583822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610186693.7A Pending CN105843752A (en) | 2016-03-29 | 2016-03-29 | Method and device for distributing memory of mobile terminal for caching image data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105843752A (en) |
WO (1) | WO2017166666A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017166666A1 (en) * | 2016-03-29 | 2017-10-05 | 乐视控股(北京)有限公司 | Method and apparatus for allocating memory of mobile terminal for caching image data, and electronic device |
CN110533176A (en) * | 2018-05-25 | 2019-12-03 | 北京深鉴智能科技有限公司 | Buffer storage and its associated computing platform for neural computing |
CN111966642A (en) * | 2020-08-28 | 2020-11-20 | 维沃移动通信有限公司 | Picture management method and device and electronic equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118133050B (en) * | 2024-05-07 | 2024-09-17 | 芯来智融半导体科技(上海)有限公司 | Storage unit matching method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710267A (en) * | 2009-11-13 | 2010-05-19 | 深圳市五巨科技有限公司 | Method and device for quickly displaying picture for mobile terminal |
CN102622347A (en) * | 2011-01-26 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Image management method and movable terminal |
CN102890654A (en) * | 2011-07-20 | 2013-01-23 | 中兴通讯股份有限公司 | Information saving method of mobile terminal and mobile terminal |
US20140223107A1 (en) * | 2011-09-15 | 2014-08-07 | Telefonaktiebolaget L M Ericsson (Publ) | Cache Replacement Method and System |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101908022B (en) * | 2010-08-13 | 2012-03-28 | 优视科技有限公司 | Method and device for managing internal memory of mobile communication equipment terminal |
CN105868024A (en) * | 2016-03-29 | 2016-08-17 | 乐视控股(北京)有限公司 | Method and device for distributing space of externally-arranged card of mobile terminal for caching pictures |
CN105843752A (en) * | 2016-03-29 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and device for distributing memory of mobile terminal for caching image data |
-
2016
- 2016-03-29 CN CN201610186693.7A patent/CN105843752A/en active Pending
- 2016-08-29 WO PCT/CN2016/097121 patent/WO2017166666A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710267A (en) * | 2009-11-13 | 2010-05-19 | 深圳市五巨科技有限公司 | Method and device for quickly displaying picture for mobile terminal |
CN102622347A (en) * | 2011-01-26 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Image management method and movable terminal |
CN102890654A (en) * | 2011-07-20 | 2013-01-23 | 中兴通讯股份有限公司 | Information saving method of mobile terminal and mobile terminal |
US20140223107A1 (en) * | 2011-09-15 | 2014-08-07 | Telefonaktiebolaget L M Ericsson (Publ) | Cache Replacement Method and System |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017166666A1 (en) * | 2016-03-29 | 2017-10-05 | 乐视控股(北京)有限公司 | Method and apparatus for allocating memory of mobile terminal for caching image data, and electronic device |
CN110533176A (en) * | 2018-05-25 | 2019-12-03 | 北京深鉴智能科技有限公司 | Buffer storage and its associated computing platform for neural computing |
CN111966642A (en) * | 2020-08-28 | 2020-11-20 | 维沃移动通信有限公司 | Picture management method and device and electronic equipment |
CN111966642B (en) * | 2020-08-28 | 2022-09-30 | 维沃移动通信有限公司 | Picture management method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2017166666A1 (en) | 2017-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11146502B2 (en) | Method and apparatus for allocating resource | |
RU2686673C1 (en) | Device and method of terminal control and terminal | |
CN103646656B (en) | Sound effect treatment method, device, plugin manager and audio plug-in unit | |
CN101998682A (en) | Device and method for acquiring service content by personal network equipment and related device thereof | |
CN105843752A (en) | Method and device for distributing memory of mobile terminal for caching image data | |
CN102779062A (en) | Method and device for controlling number of threads accessing system resources | |
CN106649640B (en) | Instant search method and device | |
CN105677477A (en) | Method and device for optimizing application program resources and electronic equipment | |
CN104580169A (en) | File synchronization method and file synchronization system | |
CN106790525A (en) | File downloading method and device | |
CN105791254A (en) | Network request processing method, device and terminal | |
US10908976B2 (en) | Broadcast queue adjustment method, terminal, and storage medium | |
CN105677483B (en) | Data caching method and device | |
CN116450353A (en) | Processor core matching method and device, electronic equipment and storage medium | |
KR102312672B1 (en) | Method and Electronic Device for operating screen | |
CN108023905B (en) | Internet of things application system and method | |
CN103544039A (en) | Plug-in loading processing method and device | |
CN111488207A (en) | Application process keep-alive method, device, network equipment and storage medium | |
CN105824660A (en) | Application program updating method and terminal | |
CN104184822A (en) | Data synchronism method and system | |
CN104102560A (en) | Method and device for testing system performance | |
CN111294377A (en) | Network request sending method of dependency relationship, terminal device and storage medium | |
CN106851595B (en) | Ordered broadcast processing method, device and terminal device | |
CN106550021B (en) | Push method and device for push message | |
CN105205129A (en) | Dual-system wallpaper setting method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160810 |
|
WD01 | Invention patent application deemed withdrawn after publication |