WO2020006859A1 - Procédé et dispositif de nettoyage de mémoire cache d'image, dispositif terminal, et support - Google Patents

Procédé et dispositif de nettoyage de mémoire cache d'image, dispositif terminal, et support Download PDF

Info

Publication number
WO2020006859A1
WO2020006859A1 PCT/CN2018/104968 CN2018104968W WO2020006859A1 WO 2020006859 A1 WO2020006859 A1 WO 2020006859A1 CN 2018104968 W CN2018104968 W CN 2018104968W WO 2020006859 A1 WO2020006859 A1 WO 2020006859A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
cache
priority
cached
duration
Prior art date
Application number
PCT/CN2018/104968
Other languages
English (en)
Chinese (zh)
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 WO2020006859A1 publication Critical patent/WO2020006859A1/fr

Links

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
    • 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/0891Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches using clearing, invalidating or resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • the present application belongs to the technical field of data processing, and in particular, relates to a method, a device, a terminal device, and a medium for cleaning a picture cache.
  • the waterfall layout is used to load and browse pictures. It is a relatively new way to browse pictures on web pages. Based on the waterfall layout, users do not need to turn pages during image browsing. Instead, they can continuously pull down the scroll bar or slide the scroll wheel. Can realize unlimited browsing of pictures in web pages.
  • the waterfall layout is used for image browsing. While bringing convenience to users, the images browsed by the user will be cached in the memory of the terminal device. In the waterfall layout, users can browse pictures quickly. Therefore, the memory usage of the terminal device is very serious.
  • the picture cache is directly emptied after receiving a memory warning. This can clean up the picture cache, but for some users, The image cache to be operated will also be cleaned up together, which makes it easy for the user to operate abnormally when operating the cached image.
  • embodiments of the present application provide a picture cache cleaning method and a terminal device, so as to solve the problem that an abnormal operation situation of a user is easily caused when the picture cache is cleaned in the prior art.
  • a first aspect of the embodiments of the present application provides a method for cleaning a picture cache, including:
  • the priority of each cached picture is determined based on the favorite tag value, the unloaded time, and the total loaded time corresponding to the currently unloaded and displayed cached picture, respectively. It is used to indicate whether the cached picture exists in the favorite list, the unloaded time is the time when the cached picture was most recently loaded by the terminal device and the display time is away from the current time, and the total loaded time is the cached picture being used by the Sum of the duration of the terminal device history loading display;
  • the cache pictures are cleaned in order from the lowest to the highest priority until the total picture cache is less than or equal to the memory threshold.
  • a second aspect of the embodiments of the present application provides a picture cache cleaning device, including:
  • the priority sorting module is configured to determine the priority of each cached picture based on the favorite tag value, the unloaded duration, and the total loaded duration of the currently unloaded displayed cached pictures when the total amount of the picture cache is greater than a preset memory threshold.
  • Level the favorite flag value is used to indicate whether the cached picture exists in the favorite list
  • the unloaded time is the time when the cached picture was last loaded by the terminal device and the display time is away from the current time
  • the total loading time is A total length of time during which the cached picture is loaded and displayed by the terminal device history
  • a picture replacement module configured to replace the cache picture with a priority lower than a preset level by using a replacement picture, and store a picture link corresponding to the cache picture with the replacement picture, and the replacement picture is based on the cache picture The corresponding picture name is determined;
  • a multi-level cleaning module is used to clean up the cached pictures in order from the lowest to the highest priority if the total amount of the picture cache is greater than the memory threshold after the replacement operation is completed, until the total amount of the picture cache is less than Or equal to the memory threshold.
  • a third aspect of the embodiments of the present application provides a terminal device including a memory and a processor.
  • the memory stores computer-readable instructions executable on the processor, and the processor executes the computer-readable instructions. The following steps are implemented when reading instructions:
  • the priority of each cached picture is determined based on the favorite tag value, the unloaded time, and the total loaded time corresponding to the currently unloaded and displayed cached picture, respectively. It is used to indicate whether the cached picture exists in the favorite list, the unloaded time is the time when the cached picture was most recently loaded by the terminal device and the display time is away from the current time, and the total loaded time is the cached picture being used by the Sum of the duration of the terminal device history loading display;
  • the cache pictures are cleaned in order from the lowest to the highest priority until the total picture cache is less than or equal to the memory threshold.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer-readable instructions, and is characterized in that the computer-readable instructions are implemented when executed by at least one processor. The following steps:
  • the priority of each cached picture is determined based on the favorite tag value, the unloaded time, and the total loaded time corresponding to the currently unloaded and displayed cached picture, respectively. It is used to indicate whether the cached picture exists in the favorite list, the unloaded time is the time when the cached picture was most recently loaded by the terminal device and the display time is away from the current time, and the total loaded time is the cached picture being used by the Sum of the duration of the terminal device history loading display;
  • the cache pictures are cleaned in order from the lowest to the highest priority until the total picture cache is less than or equal to the memory threshold.
  • a multi-level cleaning strategy is adopted to clean up the cached images that are not loaded and displayed, and after each cleanup is completed, it is timely detected whether the cached image takes up too much memory and stops in time when the occupied memory does not reach the memory threshold.
  • the cleaning of the cached pictures is implemented to timely and effectively clean up the cached pictures that are not loaded and displayed, and does not clean up the cached pictures currently browsed by the user, ensuring the normal operation of the user. Specifically, first, according to the user ’s operation on the cached picture and the unloaded duration and total loading time of the cached picture, the currently unloaded displayed cached picture is prioritized, and the lowest-priority picture is subjected to a smaller size.
  • Picture replacement which saves the storage of cached pictures of low importance to users, and at the same time guarantees that when viewing pictures in waterfall layout, there will be no picture vacancies and no displacement of pictures.
  • the cached picture is replaced, so that when the user needs to browse the cleaned picture and other operations, the related information and link of the cleaned picture can be obtained in a timely and effective manner, thereby ensuring that the user can normally perform picture related operations while cleaning.
  • the unloaded cached images are cleaned layer by layer according to the priority order, and after cleaning, it is judged in time whether the cleaning target is reached, so that the embodiment of the present application does not perform indiscriminate over-cleaning of cached images as in the prior art. , Which greatly improves the accuracy of clearing cached images and avoids the occurrence of abnormal user operations.
  • FIG. 1 is a schematic flowchart of an image cache cleaning method provided in Embodiment 1 of the present application;
  • FIG. 2 is a schematic flowchart of an image cache cleaning method provided in Embodiment 2 of the present application.
  • FIG. 3 is a schematic flowchart of an image cache cleaning method provided in Embodiment 3 of the present application.
  • FIG. 4 is a schematic flowchart of an image cache cleaning method provided in Embodiment 4 of the present application.
  • FIG. 5 is a schematic structural diagram of a picture cache cleaning device provided in Embodiment 5 of the present application.
  • FIG. 6 is a schematic diagram of a terminal device provided in Embodiment 6 of the present application.
  • FIG. 1 shows an implementation flowchart of a method for cleaning a picture cache provided in Embodiment 1 of the present application, which is detailed as follows:
  • the priority of each cached picture is determined based on the favorite tag value, the unloaded duration, and the total loaded duration of the currently unloaded and displayed cached picture respectively.
  • the favorite tag value is used for Indicates whether the cached picture exists in the favorites list.
  • the unloaded time is the time when the cached picture was last loaded by the terminal device.
  • the total display time is the sum of the length of the cached picture displayed by the terminal device ’s history.
  • the cached picture When the memory occupied by the cached picture is too large, the cached picture is cleared to ensure that the user can browse the picture normally. Because the importance of different cached pictures to users may vary greatly, some may be very important to users, and some may not have much effect on users. Therefore, if all cached pictures are directly made according to the existing technology, there is no difference. Cleaning up will cause the user's important pictures to be mistakenly cleaned up together, thus making the normal operation of the user vulnerable. Therefore, in order to achieve accurate cleaning of cached images to avoid the impact of the cleaning of cached images on the normal operations of users, in the embodiment of the present application, the importance of each cached image to the user is identified and prioritized, and then based on the priority Perform subsequent processing operations sequentially.
  • the three factors of the bookmark value corresponding to the cached picture, the unloaded time and the total loaded time are combined to determine the importance of each cached picture to the user. Degree of identification and prioritization and cleanup.
  • the specific method of prioritizing according to the bookmark value, the unloaded time, and the total loaded time is not limited here, and can be set by a technician according to requirements, including but not limited to the method as in the second embodiment of the present application. .
  • the specific value of the memory threshold can be set by a technician based on the actual memory of the terminal device or the actual available memory allocated by the terminal device for the application. However, the memory threshold should be less than or equal to the memory threshold corresponding to the memory warning. Effective cleaning of cached images is guaranteed.
  • S102 Use a replacement picture to replace a cache picture with a priority lower than a preset level, and store a link to the picture corresponding to the cache picture with the replacement picture.
  • the replacement picture is determined according to the picture name corresponding to the cache picture.
  • cleaning up the cached picture is started.
  • some cached pictures with a lower priority are first cleaned first. Because the lower priority means that these cached pictures are less important to the user, the probability that the user operates the cached pictures again is also Relatively small, so cleaning these cached images first can minimize the possibility of affecting the normal operation of the user and prevent the occurrence of abnormal operation by the user.
  • the specific priority level corresponding to the preset level can be set by a technician according to the actual situation.
  • the embodiment of the present application uses a picture replacement method to replace the cached pictures with the replacement pictures, so that the corresponding positions of the cleaned up cached pictures still remain.
  • the replacement picture exists, and there will be no vacancy and displacement of the picture.
  • a corresponding replacement picture will appear at the original position of the cached picture.
  • the user is likely to pull up or down the scroll bar or the scroll wheel to browse the picture in the actual situation.
  • Browse to the replacement picture if the replacement picture does not contain any information about the original cached picture, the user will not be able to obtain any information about the original cached picture normally, so that the user cannot perform any operation on the original cached picture.
  • the related information of the original cached picture will be recorded, such as the picture name of the original cached picture or the keyword in the picture name.
  • the record is displayed in the replacement picture, so that when the user sees the replacement picture, the user can know the picture name of the corresponding original cache picture, and at the same time, the picture link of the local cache or network picture corresponding to the original cache picture and the replacement picture management Storage, so that the user can not only know the relevant information of the original cached picture corresponding to the replacement picture, but also further obtain its corresponding picture file to meet the user's further operation requirements for the picture file to ensure that the cached picture is cleaned up The user's normal operation of the cached picture.
  • the replacement picture also has the advantages of saving memory, providing information about the original cached picture, and guarantee in the embodiment of the present application.
  • the user's picture does not appear to have effects such as picture displacement, that is, the replacement picture generated in the embodiment of the present application should have at least the following characteristics: 1.
  • the replacement picture occupies less memory than the original cache picture, 2.
  • the replacement picture contains Information about the original cached image. 3.
  • the embodiment of the present application when generating a corresponding replacement picture for the original cache picture, first reads the resolution of the original cache picture , The thumbnail size in the waterfall layout and the corresponding picture name or keyword in the picture name, the regenerated size is the same as the thumbnail size of the original cached picture in the waterfall layout, but the resolution is smaller than the original cached picture.
  • the blank replacement picture with the resolution, and finally the picture name of the original cache picture or the keyword words in the picture name are filled into the blank replacement picture to obtain the final original cache picture and generate a corresponding replacement picture.
  • the file size of the generated replacement picture must be smaller than the corresponding original cached picture, that is, it takes up less memory.
  • the preview display in the waterfall layout is displayed in thumbnails, so it is guaranteed that after the replacement image replaces the original cached image, the position and size occupied by each replacement image in the waterfall layout image browsing are the same as the original cached image. Exactly the same, so there will be no gaps or displacements in the picture.
  • the specific resolution of the initial picture can be set by the technicians, for example, it can be set to a lower fixed value, or set to n% of the original cached picture resolution, n is less than 100, and so on.
  • the method further includes: if the total picture cache is not greater than the memory threshold after completing the replacement operation, stopping the cleaning of the cache picture.
  • the cached picture that is not loaded and displayed is cleaned up, and the cached picture that the user is currently loading and displaying is not cleaned up.
  • a multi-level cleaning strategy is adopted to clean the cached images that are not loaded and displayed. After each cleaning is completed, it is timely detected whether the cached image takes up too much memory. When the occupied memory does not reach the memory threshold, the cached image is stopped in time. In this way, the cached pictures that are not loaded and displayed are timely and effectively cleaned up, and the cached pictures currently browsed by the user are not cleaned up in any way, which guarantees the normal operation of the user.
  • the currently unloaded displayed cached picture is prioritized, and the lowest-priority picture is subjected to a smaller size.
  • Picture replacement which saves the storage of cached pictures of low importance to users, and at the same time guarantees that when viewing pictures in waterfall layout, there will be no picture vacancies and no displacement of pictures.
  • the cached picture is replaced, so that when the user needs to browse the cleaned picture and other operations, the related information and link of the cleaned picture can be obtained in a timely and effective manner, thereby ensuring that the user can normally perform picture related operations while cleaning.
  • the unloaded cached images are cleaned layer by layer according to the priority order, and after cleaning, it is judged in time whether the cleaning target is reached, so that the embodiment of the present application does not perform indiscriminate over-cleaning of cached images as in the prior art. , Which greatly improves the accuracy of clearing cached images and avoids the occurrence of abnormal user operations.
  • the second embodiment of the present application includes:
  • S201 Set the cached pictures existing in the favorite list as the first priority, and determine whether the corresponding unloaded duration corresponding to the cached pictures that do not exist in the favorite list is greater than a preset first duration threshold, and whether the corresponding total loaded duration is greater than The preset second duration threshold.
  • the error clearing is set in the embodiment of the present application as the cache image with the highest priority in the final processing.
  • the embodiment of the present application further classifies the unloaded cached pictures according to the unloaded time and the total loaded time to determine the corresponding priority.
  • the embodiment of the present application sets the cached picture with a small unloaded time as the second priority picture to be processed later.
  • the priority levels of the first priority, the second priority, the third priority, and the fourth priority are decreased in order.
  • the embodiment of the present application further prioritizes cached pictures with a long unloaded duration. For cached pictures with a long total load time, users have a longer time to browse them. Therefore, they are more important than cached pictures with a long total load time.
  • the The cached picture is set to a third priority with a higher priority, and the cached picture with a total load duration is set to a fourth priority with a lower priority to ensure effective cleaning of the cached pictures and normal operations of the user.
  • the specific size of the threshold in the embodiment of the present application can be set by a technician according to the actual situation.
  • the third embodiment of the present application includes:
  • the cached pictures are compressed in order from the lowest to the highest priority until the total picture cache is less than or equal to the memory threshold, where the size of the picture compression rate is negatively related to the priority.
  • the replacement picture contains some related information of the original cached picture and the image link, which can guarantee the user's related operations on the original cached picture to a certain extent, in reality, because the replacement picture is not the original cached picture, When browsing pictures and other operations, it still affects users to some extent. Therefore, in order to ensure the effective cleaning and ensure the normal operation of the user, the embodiment of this application will further compress the remaining cached pictures after the replacement of the low-priority cached pictures. The rate is reduced, and the user's browsing and other operations have less impact, thereby ensuring the user's normal operation of the cached picture as much as possible.
  • the size of the picture compression rate directly determines the size of the releasable memory in the embodiment of the present application.
  • the larger the picture compression ratio the greater the impact on the quality of the cached picture, and therefore the greater the impact on the user's operation of the cached picture. Therefore, in order to achieve a better cleaning effect, at the same time, minimize the impact on the user The impact of the normal operation of cached pictures.
  • a different picture compression rate is set for each priority, and the higher the priority, the lower the corresponding picture compression rate to ensure that the impact on important cached pictures is reduced. Minimize the impact on the user's cached image operations to a minimum.
  • the specific value of the picture compression ratio can be set by a technician according to actual needs.
  • the embodiment of the present application further performs a process on the cached images on the basis of compression. Further processing to ensure the effective cleaning of the cached picture, to ensure the normal operation of the user and the normal operation of the browser, including:
  • the method for cleaning each compressed cache picture is not limited here, and can be specifically set by a technician.
  • the particularity of the waterfall layout is taken into account: the user has a great probability of viewing an image that is closer to the current browsing operation (that is, the unloaded time is shorter), and considers that the replacement of the image to the user
  • the impact of normal operation is great, so when processing the unreplaced cached pictures in the first embodiment of the present application, compression processing is preferentially performed, and different picture compression rates are set for cached pictures of different priorities to improve cleanup during compression. Effect, and when the compression is insufficient to meet the memory threshold requirements, further compressed image replacement is performed to achieve multi-level cleaning of cached images to achieve accurate and effective cleaning of cached images. Maximize the user's normal operation of cached pictures.
  • FIG. 5 shows a structural block diagram of a picture cache cleaning device provided by an embodiment of the present application.
  • the image cache cleaning device illustrated in FIG. 5 may be an execution subject of the image cache cleaning method provided in the foregoing first embodiment.
  • the picture cache cleaning device includes:
  • the priority sorting module 51 is configured to determine the cache image based on the favorite tag value, the unloaded duration, and the total loaded duration of the currently unloaded displayed cached pictures when the total amount of the picture cache is greater than a preset memory threshold.
  • the favorite flag value is used to indicate whether the cached picture exists in the favorite list
  • the unloaded time is the time when the cached picture was last loaded by the terminal device, and the display time is away from the current time
  • the total loading time The total length of time for which the cached picture is loaded and displayed by the terminal device history.
  • a picture replacement module 52 configured to replace the cache picture with a priority lower than a preset level by using a replacement picture, and store a picture link corresponding to the cache picture with the replacement picture, and the replacement picture is based on the cache The picture name corresponding to the picture is determined.
  • a multi-level cleaning module 53 is configured to clean up the cached pictures in order from low to high priority if the total amount of the picture cache is greater than the memory threshold after completing the replacement operation, until the total amount of the picture cache Is less than or equal to the memory threshold.
  • the priority ranking module 51 includes:
  • the priority levels of the first priority, the second priority, the third priority, and the fourth priority are sequentially decreased.
  • the multi-stage cleaning module 53 includes:
  • a compression module configured to compress the cached pictures in order from the lowest to the highest priority based on the picture compression rate corresponding to each priority until the total amount of picture cache is less than or equal to the memory threshold,
  • the picture compression ratio is inversely related to the priority.
  • the multi-stage cleaning module 53 includes:
  • a secondary cleaning module is configured to clean up the compressed cached pictures in order from the lowest to the highest priority if the total amount of the compressed picture cache is greater than the memory threshold.
  • the secondary cleaning module includes:
  • first, second, etc. are used in the text to describe various elements in some embodiments of the present application, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
  • a first contact may be named a second contact, and similarly, a second contact may be named a first contact without departing from the scope of the various described embodiments. Both the first contact and the second contact are contacts, but they are not the same contact.
  • FIG. 6 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 6 of this embodiment includes a processor 60 and a memory 61, and the memory 61 stores computer-readable instructions 62 that can be run on the processor 60.
  • the processor 60 executes the computer-readable instructions 62
  • steps in the embodiments of the foregoing picture cache cleaning method embodiments are implemented, for example, steps 101 to 103 shown in FIG.
  • the processor 60 executes the computer-readable instructions 62
  • the functions of each module / unit in the foregoing device embodiments are implemented, for example, the functions of modules 51 to 53 shown in FIG. 5.
  • the terminal device 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 60 and a memory 61.
  • FIG. 6 is only an example of the terminal device 6, and does not constitute a limitation on the terminal device 6, and may include more or less components than shown in the figure, or combine some components or different components.
  • the terminal device may further include an input sending device, a network access device, a bus, and the like.
  • the processor 60 may be a central processing unit (Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • ASIC Applications
  • FPGA off-the-shelf Programmable Gate Array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6.
  • the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (SD) provided on the terminal device 6. Card, flash card, etc. Further, the memory 61 may further include both an internal storage unit of the terminal device 6 and an external storage device.
  • the memory 61 is configured to store the computer-readable instructions and other programs and data required by the terminal device.
  • the memory 61 may also be used to temporarily store data that has been sent or will be sent.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated module / unit When the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the methods of the above embodiments, and can also be completed by computer-readable instructions instructing related hardware.
  • the computer-readable instructions can be stored in a computer-readable storage medium In the computer-readable instructions, when executed by a processor, the steps of the foregoing method embodiments can be implemented.
  • the computer-readable instructions include computer-readable instruction codes, and the computer-readable instruction codes may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory, ROM), Random Access Memory Memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • a recording medium a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory, ROM), Random Access Memory Memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • a recording medium a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory, ROM), Random Access Memory Memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdictions.
  • the computer-readable medium Excludes electric carrier signals and t

Abstract

La présente invention concerne un procédé et un dispositif de nettoyage de mémoire cache d'image, un dispositif terminal et un support, qui sont applicables au domaine technique du traitement de données, et le procédé consiste à : lorsque la quantité totale de la mémoire cache d'image est supérieure à une valeur seuil de mémoire prédéfinie, déterminer la priorité de chaque image mise en cache sur la base de la valeur de marque de collecte, de la durée non chargée et de la durée totale chargée correspondant à l'image mise en cache actuellement non chargée et non affichée, respectivement ; remplacer une image mise en cache ayant la priorité inférieure à un niveau prédéfini par une image de remplacement, et stocker le lien d'image correspondant à l'image mise en cache en association avec l'image de remplacement ; et si la quantité totale de la mémoire cache d'image est supérieure au seuil de mémoire après que l'opération de remplacement est terminée, nettoyer séquentiellement les images mises en cache selon un ordre de priorité allant de bas en haut jusqu'à ce que la quantité totale de la mémoire cache d'image soit inférieure ou égale au seuil de mémoire. Le mode de réalisation de l'invention ne réalise pas de sur-nettoyage sans distinction sur les images mises en cache comme dans l'état de la technique, ce qui améliore considérablement la précision de nettoyage des images mises en cache, et évite la survenue d'un fonctionnement anormal d'un utilisateur.
PCT/CN2018/104968 2018-07-06 2018-09-11 Procédé et dispositif de nettoyage de mémoire cache d'image, dispositif terminal, et support WO2020006859A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810736691.X 2018-07-06
CN201810736691.XA CN109299041A (zh) 2018-07-06 2018-07-06 一种图片缓存清理方法及终端设备

Publications (1)

Publication Number Publication Date
WO2020006859A1 true WO2020006859A1 (fr) 2020-01-09

Family

ID=65170492

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104968 WO2020006859A1 (fr) 2018-07-06 2018-09-11 Procédé et dispositif de nettoyage de mémoire cache d'image, dispositif terminal, et support

Country Status (2)

Country Link
CN (1) CN109299041A (fr)
WO (1) WO2020006859A1 (fr)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866419B (zh) * 2019-04-24 2022-05-31 杭州海康微影传感科技有限公司 热成像图像显示方法、装置及热成像设备
CN110400356A (zh) * 2019-06-24 2019-11-01 武汉联影医疗科技有限公司 图像纹理控制方法、装置、设备和存储介质
CN112488803A (zh) * 2020-12-16 2021-03-12 广州华多网络科技有限公司 收藏夹存储访问方法及其装置、设备、介质
CN115220663A (zh) * 2022-08-01 2022-10-21 大拓(山东)物联网科技有限公司 一种单片机图片缓冲处理方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1115850A (ja) * 1997-06-26 1999-01-22 Sumitomo Electric Ind Ltd モバイル端末用ブラウジング装置
US20040064642A1 (en) * 2002-10-01 2004-04-01 James Roskind Automatic browser web cache resizing system
CN104484235A (zh) * 2014-11-24 2015-04-01 北京奇虎科技有限公司 一种基于瀑布流技术的内存优化方法及装置
CN105893268A (zh) * 2016-03-24 2016-08-24 北京小米移动软件有限公司 缓存图片处理方法和装置
CN106897141A (zh) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 信息的处理方法及装置
CN107122454A (zh) * 2017-04-26 2017-09-01 努比亚技术有限公司 一种图片缓存清除方法、设备以及计算机可读存储介质
CN107577757A (zh) * 2017-08-31 2018-01-12 武汉斗鱼网络科技有限公司 页面瀑布流布局优化方法、存储介质、电子设备及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1115850A (ja) * 1997-06-26 1999-01-22 Sumitomo Electric Ind Ltd モバイル端末用ブラウジング装置
US20040064642A1 (en) * 2002-10-01 2004-04-01 James Roskind Automatic browser web cache resizing system
CN104484235A (zh) * 2014-11-24 2015-04-01 北京奇虎科技有限公司 一种基于瀑布流技术的内存优化方法及装置
CN106897141A (zh) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 信息的处理方法及装置
CN105893268A (zh) * 2016-03-24 2016-08-24 北京小米移动软件有限公司 缓存图片处理方法和装置
CN107122454A (zh) * 2017-04-26 2017-09-01 努比亚技术有限公司 一种图片缓存清除方法、设备以及计算机可读存储介质
CN107577757A (zh) * 2017-08-31 2018-01-12 武汉斗鱼网络科技有限公司 页面瀑布流布局优化方法、存储介质、电子设备及系统

Also Published As

Publication number Publication date
CN109299041A (zh) 2019-02-01

Similar Documents

Publication Publication Date Title
WO2020006859A1 (fr) Procédé et dispositif de nettoyage de mémoire cache d'image, dispositif terminal, et support
CN109756230B (zh) 数据压缩存储方法、数据压缩方法、装置、设备及介质
RU2673694C2 (ru) Измененное сжатие памяти
US10114865B2 (en) Tile cache
JP7009479B2 (ja) メッセージ処理方法および装置
CN108259939B (zh) 新视频推送控制方法、装置及服务器
CN103218224B (zh) 一种提高存储空间利用率的方法和终端
WO2020006860A1 (fr) Procédé et appareil de nettoyage de mémoire cache d'image, dispositif terminal et support
US9176804B2 (en) Memory dump optimization in a system
US10346364B2 (en) Efficient data storage utilization and recycling by gradual data degradation
EP2857990A1 (fr) Procédé et système de prévisualisation d'informations de fichier
CN109376645B (zh) 一种人脸图像数据优选方法、装置及终端设备
JP2006351004A (ja) 携帯端末機のメモリ管理方法
US9335946B2 (en) Method and apparatus for managing memory
CN111159436A (zh) 一种推荐多媒体内容的方法、装置及计算设备
US20220035655A1 (en) Method and Device for Anonymous Page Management, Terminal Device, and Readable Storage Medium
CN106982388B (zh) 一种图片的显示方法和装置
US20130179410A1 (en) Real-time selection of compression operations
WO2021017899A1 (fr) Procédé de nettoyage efficace de fichiers d'équipement et dispositif
CN108052575A (zh) 文件扫描方法、设备及存储介质
WO2019018062A1 (fr) Organisation automatique d'images dans une disposition de grille d'images
CN106599323A (zh) 在分布式文件系统中实现分布式管道的方法和装置
US9549044B1 (en) Data processing
CN112541140A (zh) 一种列表加载方法、终端设备、电子设备及存储介质
CN114638742A (zh) 场景画面处理方法和电子设备

Legal Events

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

Ref document number: 18925707

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18925707

Country of ref document: EP

Kind code of ref document: A1