WO2017166666A1 - 分配移动终端内存缓存图片数据的方法、装置和电子设备 - Google Patents

分配移动终端内存缓存图片数据的方法、装置和电子设备 Download PDF

Info

Publication number
WO2017166666A1
WO2017166666A1 PCT/CN2016/097121 CN2016097121W WO2017166666A1 WO 2017166666 A1 WO2017166666 A1 WO 2017166666A1 CN 2016097121 W CN2016097121 W CN 2016097121W WO 2017166666 A1 WO2017166666 A1 WO 2017166666A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
memory space
remaining memory
allocating
picture data
Prior art date
Application number
PCT/CN2016/097121
Other languages
English (en)
French (fr)
Inventor
江丹
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
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 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017166666A1 publication Critical patent/WO2017166666A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0893Caches characterised by their organisation or structure

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a method, an apparatus, and an electronic device for allocating memory cache picture data of a mobile terminal.
  • mobile terminals With the popularity of mobile terminals, especially smart phones, and the explosive growth of mobile phone users in China and the popularity of mobile terminals, mobile terminals have become an indispensable portable communication tool and digital assistant in people's daily lives. People use the mobile terminal to browse the Internet information online. Generally, when browsing the Internet information through the mobile terminal, the user needs to cache data, such as pictures and the like, in the memory of the mobile terminal.
  • buffer spaces of different data types are allocated according to the memory size of the mobile terminal.
  • the picture data is used according to a fixed ratio of the memory size of the mobile terminal.
  • the space normally allocated to the cache picture data is n/N G, where n is a natural number greater than 0, N is a positive integer, and G is a unit of the size of the memory space.
  • the memory space of the mobile terminal becomes smaller.
  • the space for the fixed allocation of n/N G is used to cache the picture, it will cause the mobile terminal to use it in the memory.
  • the space it caches or processes becomes very small, which can cause the mobile terminal to jam, crash, and the like.
  • the technical problem to be solved by the present invention is to reasonably allocate the picture data buffer space and reduce the waste of memory space.
  • an embodiment of the present invention provides a method for allocating memory cache picture data of a mobile terminal, including the following steps:
  • the system broadcasts the memory space of the mobile terminal; the remaining memory space of the mobile terminal is obtained according to a preset rule; and the remaining memory space is allocated as a cached picture according to a preset ratio according to a preset ratio.
  • acquiring the remaining memory space of the mobile terminal according to the preset rule comprises: acquiring the remaining memory space of the mobile terminal according to the preset time interval.
  • acquiring the remaining memory space of the mobile terminal according to the preset rule comprises: acquiring a trigger signal for characterizing the statistical remaining memory; and acquiring a remaining memory space of the mobile terminal according to the trigger signal.
  • the trigger signal is provided by request information when the application tool is requested to cache the picture data to the server in the mobile terminal.
  • the preset ratio is between 1/6 and 1/10.
  • an embodiment of the present invention provides an apparatus for allocating memory cache picture data of a mobile terminal, including:
  • a broadcast unit configured to start a system broadcast to monitor a memory space of the mobile terminal; a remaining space acquisition unit, configured to acquire a remaining memory space of the mobile terminal according to a preset rule; and an allocation unit configured to preset the remaining memory space according to a preset ratio Proportional allocation is used as a cached picture.
  • the allocating unit comprises: a first allocating unit, configured to acquire a remaining memory space of the mobile terminal according to a preset time interval.
  • the allocating unit comprises: a triggering unit, configured to acquire a trigger signal for characterizing the statistical remaining memory; and a second allocating unit, configured to acquire a remaining memory space of the mobile terminal according to the trigger signal.
  • the trigger signal is provided by request information when the application tool is requested to cache the picture data to the server in the mobile terminal.
  • the preset ratio is between 1/6 and 1/10.
  • the present invention further provides an electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory is stored for execution by the at least one processor And the instruction is executed by the at least one processor, so that the at least one processor can start a system broadcast to monitor a memory space of the mobile terminal; and acquire a remaining memory space of the mobile terminal according to a preset rule; The ratio is used to allocate the remaining memory space as the cached picture according to the preset ratio.
  • the acquiring the remaining memory space of the mobile terminal according to the preset rule comprises: acquiring a remaining memory space of the mobile terminal according to a preset time interval.
  • the acquiring the remaining memory space of the mobile terminal based on the preset rule comprises: acquiring a trigger signal for characterizing the statistical remaining memory; and acquiring a remaining memory space of the mobile terminal according to the trigger signal.
  • the trigger signal is provided by request information when the application tool requests the server to cache the picture data in the mobile terminal.
  • the preset ratio is between 1/6 and 1/10.
  • the present invention also provides a non-volatile computer storage medium storing computer-executable instructions that, when executed by an electronic device, enable the electronic device to: initiate a system broadcast to monitor the memory of the mobile terminal
  • the remaining memory space of the mobile terminal is obtained according to a preset rule; the remaining memory space is allocated as a cached picture according to the preset ratio according to a preset ratio.
  • the acquiring the remaining memory space of the mobile terminal according to the preset rule comprises: acquiring a remaining memory space of the mobile terminal according to a preset time interval.
  • the acquiring the remaining memory space of the mobile terminal based on the preset rule comprises: acquiring a trigger signal for characterizing the statistical remaining memory; and acquiring a remaining memory space of the mobile terminal according to the trigger signal.
  • the trigger signal is provided by request information when the application tool requests the server to cache the picture data in the mobile terminal.
  • the storage medium according to any one of claims 16 to 19, wherein the preset ratio is between 1/6 and 1/10.
  • the method and device for allocating the memory cache picture data of the mobile terminal provided by the embodiment of the present invention, the remaining memory space of the mobile terminal is obtained based on the preset rule, and then the remaining memory space is allocated as a cache picture according to a preset ratio according to a preset ratio. . Therefore, the picture data cache space is allocated reasonably, the memory space waste rate is effectively reduced, and the image data cache space scheme of the mobile terminal memory allocation is optimized.
  • FIG. 1 is a flowchart of a method for allocating memory cache picture data of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic block diagram of an apparatus for allocating memory cache picture data of a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present invention.
  • connection or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection.
  • connection or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection.
  • the embodiment discloses a method for allocating the memory cache picture data of the mobile terminal.
  • the flow chart of the method allocates the mobile terminal memory cache.
  • the method of image data includes the following steps:
  • step S100 the system broadcast is started to monitor the memory space of the mobile terminal.
  • the memory of the mobile terminal is connected to the controller of the mobile terminal for data interaction. Therefore, the memory space of the mobile terminal can be monitored by starting the system broadcast.
  • Step S200 Acquire a remaining memory space of the mobile terminal based on a preset rule.
  • the memory space will change. Generally, the memory space of the mobile terminal becomes smaller. Of course, when the application tool in the mobile terminal is uninstalled or the garbage data cached in the memory of the mobile terminal is cleared, the memory space of the mobile terminal also becomes large.
  • the remaining space of the mobile terminal can be acquired based on a preset rule. In an embodiment, the remaining memory space of the mobile terminal may be acquired according to a preset time interval. In this embodiment, the preset time interval may be an equal time interval, or may be a preset different time interval.
  • a trigger signal for characterizing the statistical remaining memory may be acquired, and then the remaining memory space of the mobile terminal is acquired according to the trigger signal.
  • the trigger signal may be initiated by a trigger event of the mobile terminal, or may be provided by request information when the application tool requests the server to cache the picture data in the mobile terminal.
  • step S300 the remaining memory space is allocated according to a preset ratio as a cache picture according to a preset ratio.
  • the preset ratio may be set according to experience.
  • the preset ratio may be set between 1/6 and 1/10, preferably 1/8.
  • step S100 may be returned to implement continuous monitoring of the memory space of the mobile terminal, so as to better implement dynamic adjustment according to the remaining memory space of the mobile terminal. Allocate space for cached image data.
  • the embodiment also discloses an apparatus for allocating memory cache picture data of a mobile terminal.
  • the apparatus for allocating mobile terminal memory cache picture data includes: a broadcasting unit 100, a remaining space obtaining unit 200, and an allocating unit 300, wherein:
  • the broadcast unit 100 is configured to start a system broadcast to monitor a memory space of the mobile terminal; the remaining space obtaining unit 200 is configured to acquire a remaining memory space of the mobile terminal according to a preset rule; the allocating unit 300 is configured to preset the remaining memory space according to a preset ratio. Proportional allocation is used as a cached picture.
  • the allocating unit 300 includes: a first allocating unit, configured to acquire a remaining memory space of the mobile terminal according to a preset time interval.
  • the allocating unit 300 includes: a triggering unit, configured to acquire a trigger signal for characterizing the statistical remaining memory; and a second allocating unit, configured to acquire a remaining memory space of the mobile terminal according to the trigger signal.
  • the trigger signal is provided by request information when the application tool is requested to cache picture data from the server in the mobile terminal.
  • the preset ratio is between 1/6 and 1/10.
  • the method and device for allocating the memory cache picture data of the mobile terminal are as follows: the remaining memory space of the mobile terminal is obtained based on the preset rule, and then the remaining memory space is allocated as a cached picture according to a preset ratio according to a preset ratio. Therefore, the picture data cache space is allocated reasonably, the memory space waste rate is effectively reduced, and the image data cache space scheme of the mobile terminal memory allocation is optimized.
  • an embodiment of the present invention further provides an electronic device, including at least one processor 810; and a memory 800 communicably connected to the at least one processor 810; wherein the memory 800 is stored An instruction executed by the at least one processor 810, the instructions being executed by the at least one processor 810 to enable the at least one processor 810 to initiate a system broadcast to listen to a memory space of the mobile terminal; The remaining memory space of the mobile terminal; the remaining memory space is allocated as a cached picture according to the preset ratio according to a preset ratio.
  • the electronic device also includes an input device 830 and an output device 840 that are electrically coupled to the memory 800 and the processor, the electrical connections preferably being connected by a bus.
  • the acquiring the remaining memory space of the mobile terminal based on the preset rule includes: acquiring the remaining memory space of the mobile terminal according to a preset time interval.
  • the acquiring the remaining memory space of the mobile terminal based on the preset rule includes: acquiring a trigger signal for characterizing the statistical remaining memory; and acquiring the mobile terminal according to the trigger signal The remaining memory space.
  • the trigger signal is provided by request information when the application tool requests the server to cache the picture data in the mobile terminal.
  • the preset ratio is between 1/6 and 1/10.
  • the embodiment of the present invention further provides a non-volatile computer storage medium, where the storage medium stores computer-executable instructions, when executed by the electronic device, enabling the electronic device to: initiate a system broadcast to monitor the memory space of the mobile terminal;
  • the preset rule acquires a remaining memory space of the mobile terminal; and allocates the remaining memory space according to the preset ratio as a cached picture according to a preset ratio.
  • the acquiring the remaining memory space of the mobile terminal based on the preset rule includes: acquiring the remaining memory space of the mobile terminal according to a preset time interval.
  • the acquiring the remaining memory space of the mobile terminal based on the preset rule includes: acquiring a trigger signal for characterizing the statistical remaining memory; acquiring the mobile terminal according to the trigger signal The remaining memory space.
  • the trigger signal is provided by request information when the application tool requests the server to cache the picture data in the mobile terminal. If the right The storage medium according to any one of the items 16-19, wherein the preset ratio is between 1/6 and 1/10.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded into a computer or other programmable data processing device Having a series of operational steps performed on a computer or other programmable device to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing one or more processes in a flowchart and/or Or block diagram the steps of a function specified in a box or multiple boxes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种分配移动终端内存缓存图片数据的方法、装置和电子设备,涉及移动通信领域,其中,所述方法包括:启动系统广播监听移动终端的内存空间(S100);基于预设规则获取移动终端的剩余内存空间(S200);按照预设比例将剩余内存空间按预设比例分配用作缓存图片(S300)。从而,合理分配图片数据缓存空间,有效地减少内存空间浪费率,优化了移动终端内存分配图片数据缓存空间方案。

Description

分配移动终端内存缓存图片数据的方法、装置和电子设备
交叉引用
本申请要求在2016年03月29日提交中国专利局、申请号为201610186693.7、发明名称为“分配移动终端内存缓存图片数据的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通信领域,具体涉及一种分配移动终端内存缓存图片数据的方法、装置和电子设备。
背景技术
随着移动终端尤其是智能手机的普及和随着中国手机用户数的爆炸式增长和移动终端的普及,移动终端已经成为人们日常生活中不可或缺的随身通讯工具和数字助手,越来越多的人使用移动终端上网浏览互联网信息。通常,用户在通过移动终端浏览互联网信息时,需要在移动终端的内存中缓存数据,例如图片等数据。
通常,根据移动终端的内存大小来分配不同数据类型的缓存空间。现有技术中,按照移动终端的内存大小按照固定的占比用来缓存图片数据。例如,移动终端标定的出厂内存为n G时,通常固定分配给缓存图片数据的空间为n/N G,其中,n为大于0的自然数,N为正整数,G为内存空间大小的单位。然而,随着移动终端的使用,移动终端的内存空间会变小,当固定分配n/N G的空间用来缓存图片时,会导致移动终端内存中用作其 它缓存或处理的空间变得十分小,这会导致移动终端卡顿、死机等现象。
如何在移动终端内存固定的情况下,合理分配图片数据缓存空间,减少内存空间浪费成为亟待解决的问题。
发明内容
本发明要解决的技术问题在于合理分配图片数据缓存空间,减少内存空间浪费。
为此,根据第一方面,本发明实施例提供一种分配移动终端内存缓存图片数据的方法,包括如下步骤:
启动系统广播监听移动终端的内存空间;基于预设规则获取移动终端的剩余内存空间;按照预设比例将剩余内存空间按预设比例分配用作缓存图片。
优选地,基于预设规则获取移动终端的剩余内存空间包括:按照预设时间间隔获取移动终端的剩余内存空间。
优选地,基于预设规则获取移动终端的剩余内存空间包括:获取用于表征统计剩余内存的触发信号;根据触发信号获取移动终端的剩余内存空间。
优选地,触发信号由设置在移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
优选地,预设比例为1/6~1/10之间。
根据第二方面,本发明实施例提供一种分配移动终端内存缓存图片数据的装置,包括:
广播单元,用于启动系统广播监听移动终端的内存空间;剩余空间获取单元,用于基于预设规则获取移动终端的剩余内存空间;分配单元,用于按照预设比例将剩余内存空间按预设比例分配用作缓存图片。
优选地,分配单元包括:第一分配单元,用于按照预设时间间隔获取移动终端的剩余内存空间。
优选地,分配单元包括:触发单元,用于获取用于表征统计剩余内存的触发信号;第二分配单元,用于根据触发信号获取移动终端的剩余内存空间。
优选地,触发信号由设置在移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
优选地,预设比例为1/6~1/10之间。
根据第三方面本发明又提供了一种电子设备,包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够启动系统广播监听移动终端的内存空间;基于预设规则获取所述移动终端的剩余内存空间;按照预设比例将所述剩余内存空间按所述预设比例分配用作缓存图片。
优选地,所述基于预设规则获取所述移动终端的剩余内存空间包括:按照预设时间间隔获取所述移动终端的剩余内存空间。
优选地,所述基于预设规则获取所述移动终端的剩余内存空间包括:获取用于表征统计剩余内存的触发信号;根据所述触发信号获取所述移动终端的剩余内存空间。
优选地,所述触发信号由设置在所述移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
优选地,所述预设比例为1/6~1/10之间。
根据第四方面,本发明还提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令,当由电子设备执行时使得电子设备能够:启动系统广播监听移动终端的内存空间;基于预设规则获取所述移动终端的剩余内存空间;按照预设比例将所述剩余内存空间按所述预设比例分配用作缓存图片。
优选地,所述基于预设规则获取所述移动终端的剩余内存空间包括:按照预设时间间隔获取所述移动终端的剩余内存空间。
优选地,所述基于预设规则获取所述移动终端的剩余内存空间包括:获取用于表征统计剩余内存的触发信号;根据所述触发信号获取所述移动终端的剩余内存空间。
优选地,所述触发信号由设置在所述移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。如权利要求16-19任意一项所述的存储介质,其特征在于,所述预设比例为1/6~1/10之间。
本发明技术方案,具有如下优点:
本发明实施例提供的分配移动终端内存缓存图片数据的方法及装置,由于基于预设规则获取移动终端的剩余内存空间,而后,按照预设比例将剩余内存空间按预设比例分配用作缓存图片。从而,合理分配图片数据缓存空间,有效地减少内存空间浪费率,优化了移动终端内存分配图片数据缓存空间方案。
附图说明
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例中一种分配移动终端内存缓存图片数据的方法流程图;
图2为本发明实施例中一种分配移动终端内存缓存图片数据的装置原理框图;
图3为本发明实施例中电子设备的硬件结构示意图。
具体实施方式
下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附 图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,还可以是两个元件内部的连通,可以是无线连接,也可以是有线连接。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。
此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。
为合理分配图片数据缓存空间,有效地减少内存空间浪费率,本实施例公开了一种分配移动终端内存缓存图片数据的方法,请参考图1,为该方法流程图,该分配移动终端内存缓存图片数据的方法包括如下步骤:
步骤S100,启动系统广播监听移动终端的内存空间。通常,移动终端的内存存储器与移动终端的控制器信号连接进行数据交互,因此,可以通过启动系统广播的方式可以监听到移动终端的内存空间。
步骤S200,基于预设规则获取移动终端的剩余内存空间。随着移动终端的使用,尤其是在访问互联网信息,以及安装应用工具后,移动终端的 内存空间会发生变化。通常,移动终端的内存空间会变小,当然,当卸载移动终端中的应用工具或者清除了缓存在移动终端内存中的垃圾数据后,移动终端的内存空间亦会变大。可以基于预设规则获取移动终端的剩余空间。在一种实施例中,可以按照预设时间间隔获取移动终端的剩余内存空间,本实施例中,所称预设时间间隔可以是等时间间隔,也可以是预先设置的不同时间间隔。在另一种实施例中,可以获取用于表征统计剩余内存的触发信号,而后,根据触发信号获取移动终端的剩余内存空间。在具体实施例中,触发信号可以通过移动终端的触发事件发起,也可以由设置在移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
步骤S300,按照预设比例将剩余内存空间按预设比例分配用作缓存图片。在具体实施例中,可以依据经验来设置预设比例,通常该预设比例可以设置在1/6~1/10之间,优选为1/8。
需要说明的是,在优选的实施例中,在执行完步骤S300之后,还可以返回执行步骤S100,从而实现对移动终端内存空间的连续监听,以更佳地实现根据移动终端剩余内存空间动态调整分配缓存图片数据的空间。
本实施例还公开了一种分配移动终端内存缓存图片数据的装置,请参考图2,该分配移动终端内存缓存图片数据装置包括:广播单元100、剩余空间获取单元200和分配单元300,其中:
广播单元100用于启动系统广播监听移动终端的内存空间;剩余空间获取单元200用于基于预设规则获取移动终端的剩余内存空间;分配单元300用于按照预设比例将剩余内存空间按预设比例分配用作缓存图片。
在优选的实施例中,分配单元300包括:第一分配单元,用于按照预设时间间隔获取移动终端的剩余内存空间。
在优选的实施例中,分配单元300包括:触发单元,用于获取用于表征统计剩余内存的触发信号;第二分配单元,用于根据触发信号获取移动终端的剩余内存空间。
在优选的实施例中,触发信号由设置在移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
在优选的实施例中,预设比例为1/6~1/10之间。
本实施例提供的分配移动终端内存缓存图片数据的方法及装置,由于基于预设规则获取移动终端的剩余内存空间,而后,按照预设比例将剩余内存空间按预设比例分配用作缓存图片。从而,合理分配图片数据缓存空间,有效地减少内存空间浪费率,优化了移动终端内存分配图片数据缓存空间方案。
如图3所示,本发明实施例又提供了一种电子设备,包括至少一个处理器810;以及,与所述至少一个处理器810通信连接的存储器800;其中,所述存储器800存储有可被所述至少一个处理器810执行的指令,所述指令被所述至少一个处理器810执行,以使所述至少一个处理器810能够启动系统广播监听移动终端的内存空间;基于预设规则获取所述移动终端的剩余内存空间;按照预设比例将所述剩余内存空间按所述预设比例分配用作缓存图片。所述电子设备还包括与所述存储器800和所述处理器电连接的输入装置830和输出装置840,所述电连接优选为通过总线连接。
本实施例的所述电子设备,优选地,所述基于预设规则获取所述移动终端的剩余内存空间包括:按照预设时间间隔获取所述移动终端的剩余内存空间。
本实施例的所述电子设备,优选地,所述基于预设规则获取所述移动终端的剩余内存空间包括:获取用于表征统计剩余内存的触发信号;根据所述触发信号获取所述移动终端的剩余内存空间。
本实施例的所述电子设备,优选地,所述触发信号由设置在所述移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
本实施例的所述电子设备,优选地,所述预设比例为1/6~1/10之间。
本发明实施例还提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令,当由电子设备执行时使得电子设备能够:启动系统广播监听移动终端的内存空间;基于预设规则获取所述移动终端的剩余内存空间;按照预设比例将所述剩余内存空间按所述预设比例分配用作缓存图片。
本实施例的所述存储介质,优选地,所述基于预设规则获取所述移动终端的剩余内存空间包括:按照预设时间间隔获取所述移动终端的剩余内存空间。
本实施例的所述存储介质,优选地,所述基于预设规则获取所述移动终端的剩余内存空间包括:获取用于表征统计剩余内存的触发信号;根据所述触发信号获取所述移动终端的剩余内存空间。
本实施例的所述存储介质,优选地,所述触发信号由设置在所述移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。如权利要 求16-19任意一项所述的存储介质,其特征在于,所述预设比例为1/6~1/10之间。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。

Claims (20)

  1. 一种分配移动终端内存缓存图片数据的方法,其特征在于,包括如下步骤:
    启动系统广播监听移动终端的内存空间;
    基于预设规则获取所述移动终端的剩余内存空间;
    按照预设比例将所述剩余内存空间按所述预设比例分配用作缓存图片。
  2. 如权利要求1所述的分配移动终端内存缓存图片数据的方法,其特征在于,所述基于预设规则获取所述移动终端的剩余内存空间包括:
    按照预设时间间隔获取所述移动终端的剩余内存空间。
  3. 如权利要求1所述的分配移动终端内存缓存图片数据的方法,其特征在于,所述基于预设规则获取所述移动终端的剩余内存空间包括:
    获取用于表征统计剩余内存的触发信号;
    根据所述触发信号获取所述移动终端的剩余内存空间。
  4. 如权利要求3所述的分配移动终端内存缓存图片数据的方法,其特征在于,所述触发信号由设置在所述移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
  5. 如权利要求1-4任意一项所述的分配移动终端内存缓存图片数据的方法,其特征在于,所述预设比例为1/6~1/10之间。
  6. 一种分配移动终端内存缓存图片数据的装置,其特征在于,包括:
    广播单元,用于启动系统广播监听移动终端的内存空间;
    剩余空间获取单元,用于基于预设规则获取所述移动终端的剩余内存空间;
    分配单元,用于按照预设比例将所述剩余内存空间按所述预设比例分配用作缓存图片。
  7. 如权利要求6所述的分配移动终端内存缓存图片数据的装置,其特征在于,所述分配单元包括:
    第一分配单元,用于按照预设时间间隔获取所述移动终端的剩余内存空间。
  8. 如权利要求6所述的分配移动终端内存缓存图片数据的装置,其特征在于,所述分配单元包括:
    触发单元,用于获取用于表征统计剩余内存的触发信号;
    第二分配单元,用于根据所述触发信号获取所述移动终端的剩余内存空间。
  9. 如权利要求8所述的分配移动终端内存缓存图片数据的装置,其 特征在于,所述触发信号由设置在所述移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
  10. 如权利要求6-9任意一项所述的分配移动终端内存缓存图片数据的装置,其特征在于,所述预设比例为1/6~1/10之间。
  11. 一种电子设备,其特征在于,包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够
    启动系统广播监听移动终端的内存空间;
    基于预设规则获取所述移动终端的剩余内存空间;
    按照预设比例将所述剩余内存空间按所述预设比例分配用作缓存图片。
  12. 如权利要求11所述的电子设备,其特征在于,所述基于预设规则获取所述移动终端的剩余内存空间包括:
    按照预设时间间隔获取所述移动终端的剩余内存空间。
  13. 如权利要求11所述的电子设备,其特征在于,所述基于预设规则获取所述移动终端的剩余内存空间包括:
    获取用于表征统计剩余内存的触发信号;
    根据所述触发信号获取所述移动终端的剩余内存空间。
  14. 如权利要求13所述的电子设备,其特征在于,所述触发信号由设置在所述移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
  15. 如权利要求11-14任意一项所述的电子设备,其特征在于,所述预设比例为1/6~1/10之间。
  16. 一种非易失性计算机存储介质,其特征在于:所述存储介质存储有计算机可执行指令,当由电子设备执行时使得电子设备能够:启动系统广播监听移动终端的内存空间;
    基于预设规则获取所述移动终端的剩余内存空间;
    按照预设比例将所述剩余内存空间按所述预设比例分配用作缓存图片。
  17. 如权利要求16所述的存储介质,其特征在于,所述基于预设规则获取所述移动终端的剩余内存空间包括:
    按照预设时间间隔获取所述移动终端的剩余内存空间。
  18. 如权利要求16所述的存储介质,其特征在于,所述基于预设规则获取所述移动终端的剩余内存空间包括:
    获取用于表征统计剩余内存的触发信号;
    根据所述触发信号获取所述移动终端的剩余内存空间。
  19. 如权利要求18所述的存储介质,其特征在于,所述触发信号由设置在所述移动终端中应用工具向服务器请求缓存图片数据时的请求信息提供。
  20. 如权利要求16-19任意一项所述的存储介质,其特征在于,所述预设比例为1/6~1/10之间。
PCT/CN2016/097121 2016-03-29 2016-08-29 分配移动终端内存缓存图片数据的方法、装置和电子设备 WO2017166666A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610186693.7A CN105843752A (zh) 2016-03-29 2016-03-29 分配移动终端内存缓存图片数据方法及装置
CN201610186693.7 2016-03-29

Publications (1)

Publication Number Publication Date
WO2017166666A1 true WO2017166666A1 (zh) 2017-10-05

Family

ID=56583822

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097121 WO2017166666A1 (zh) 2016-03-29 2016-08-29 分配移动终端内存缓存图片数据的方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN105843752A (zh)
WO (1) WO2017166666A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118133050A (zh) * 2024-05-07 2024-06-04 芯来智融半导体科技(上海)有限公司 一种存储单元匹配方法、装置及存储单元匹配模块

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843752A (zh) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 分配移动终端内存缓存图片数据方法及装置
CN110533176B (zh) * 2018-05-25 2022-10-11 赛灵思电子科技(北京)有限公司 用于神经网络计算的缓存装置及其相关计算平台
CN111966642B (zh) * 2020-08-28 2022-09-30 维沃移动通信有限公司 图片管理方法、装置及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710267A (zh) * 2009-11-13 2010-05-19 深圳市五巨科技有限公司 一种移动终端快速显示图片的方法和装置
CN101908022A (zh) * 2010-08-13 2010-12-08 优视科技有限公司 一种用于移动通讯设备终端的内存管理方法及其装置
CN102622347A (zh) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 图片管理方法及移动终端
CN102890654A (zh) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 一种移动终端的信息保存方法及移动终端
WO2013038220A1 (en) * 2011-09-15 2013-03-21 Telefonaktiebolaget L M Ericsson (Publ) Cache replacement method and system
CN105843752A (zh) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 分配移动终端内存缓存图片数据方法及装置
CN105868024A (zh) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 分配移动终端外置卡空间缓存图片方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710267A (zh) * 2009-11-13 2010-05-19 深圳市五巨科技有限公司 一种移动终端快速显示图片的方法和装置
CN101908022A (zh) * 2010-08-13 2010-12-08 优视科技有限公司 一种用于移动通讯设备终端的内存管理方法及其装置
CN102622347A (zh) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 图片管理方法及移动终端
CN102890654A (zh) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 一种移动终端的信息保存方法及移动终端
WO2013038220A1 (en) * 2011-09-15 2013-03-21 Telefonaktiebolaget L M Ericsson (Publ) Cache replacement method and system
CN105843752A (zh) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 分配移动终端内存缓存图片数据方法及装置
CN105868024A (zh) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 分配移动终端外置卡空间缓存图片方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118133050A (zh) * 2024-05-07 2024-06-04 芯来智融半导体科技(上海)有限公司 一种存储单元匹配方法、装置及存储单元匹配模块

Also Published As

Publication number Publication date
CN105843752A (zh) 2016-08-10

Similar Documents

Publication Publication Date Title
KR102224760B1 (ko) 자동 애플리케이션 업데이트
WO2017166666A1 (zh) 分配移动终端内存缓存图片数据的方法、装置和电子设备
JP6062608B2 (ja) ウェブページアクセス方法、装置、サーバ、端末、プログラム、及び記録媒体
KR102105636B1 (ko) 원격으로 애플리케이션들을 설치
WO2017166679A1 (zh) 一种应用程序存储空间的管理方法、装置和电子设备
KR101996338B1 (ko) 정보 리마인드 방법, 장치, 및 전자 단말기
WO2017167050A1 (zh) 配置信息生成、发送方法及资源加载方法和装置及系统
CN105075241B (zh) 电子装置和处理图像的方法
WO2015043512A1 (zh) 一种图片管理方法和装置
WO2015169212A1 (en) Startup accelerating method and apparatus
CN111599022B (zh) 房屋展示方法、装置和电子设备
WO2018049933A1 (zh) 数据迁移方法及相关产品
US9728226B2 (en) Method for creating a content and electronic device thereof
JP6302098B2 (ja) アドレスフィルタリング方法、装置、プログラム及び記録媒体
US20170078360A1 (en) Mechanism for building normalized service model to expose web apis
KR102312672B1 (ko) 데이터 처리 방법 및 전자 장치
WO2017166662A1 (zh) 分配移动终端外置卡空间缓存图片方法、装置和电子设备
JP2016532966A5 (zh)
KR102240526B1 (ko) 전자 장치의 컨텐츠 다운로드 방법 및 그 전자 장치
WO2017166611A1 (zh) 一种媒体文件删除方法、装置和电子设备
CN106576293B (zh) 电子设备和用于控制电子设备中的信息交换的方法
CN103631621A (zh) 一种信息提示方法及装置
US20160036902A1 (en) Method and apparatus for sharing content between devices in peer-to-peer networks
CN111143293B (zh) 一种元数据获取方法、装置、设备及计算机可读存储介质
CN112351202B (zh) 多媒体数据交互方法、系统、装置、电子设备和存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16896436

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896436

Country of ref document: EP

Kind code of ref document: A1