CN104636364B - The memory release method and device of browser - Google Patents

The memory release method and device of browser Download PDF

Info

Publication number
CN104636364B
CN104636364B CN201310554944.9A CN201310554944A CN104636364B CN 104636364 B CN104636364 B CN 104636364B CN 201310554944 A CN201310554944 A CN 201310554944A CN 104636364 B CN104636364 B CN 104636364B
Authority
CN
China
Prior art keywords
page
specific gravity
rate
accession
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310554944.9A
Other languages
Chinese (zh)
Other versions
CN104636364A (en
Inventor
蔡荧园
陈泽凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310554944.9A priority Critical patent/CN104636364B/en
Publication of CN104636364A publication Critical patent/CN104636364A/en
Application granted granted Critical
Publication of CN104636364B publication Critical patent/CN104636364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of memory release methods of browser, comprising the following steps: when detecting the release request of browser memory, obtains all accession pages of browser;According to history access time and history page focal characteristics, the rate of specific gravity of all accession pages is calculated;All accession pages are ranked up according to the rate of specific gravity, and discharge the smallest accession page of rate of specific gravity, until browser memory is lower than a preset threshold.The invention also discloses a kind of memory release devices of browser.When the present invention is by detecting the release request of browser memory, the rate of specific gravity of accession page is calculated according to history access time and history page focal characteristics, so as to filter out the best suitably superseded page, it reduces the quantity for eliminating the page and reduces the possibility recovery rate for eliminating the page, waiting time when user switches history accession page is reduced, the access efficiency of the page is improved.

Description

The memory release method and device of browser
Technical field
The present invention relates to computer field more particularly to the memory release methods and device of a kind of browser.
Background technique
Multiple window pages can be accessed simultaneously by the browser on terminal device, to obtain the information of oneself needs. But terminal browser product accesses a webpage using browser control part, will occupy certain memory, therefore can only once beat Open a certain number of pages.And the history page accessed will also save, so as to access next time of user.In order to enable clear Look at device control can accession page glibly, then must assure that enough memories, it is therefore desirable to releasing memory in time.Existing skill , using history access time comparison algorithm, earliest partial history access will be calculated when memory reaches a critical value in art The page discharges some or all of memory of browser control part of the page.
Above-mentioned memory release embodiments may discharge the focus page of non-focus window, so as to cause user's switch window When, the page committed memory that needs to wait the recovery of the page, therefore can not fast and efficiently discharge.
Summary of the invention
The main purpose of technical solution of the present invention is to provide the memory release method and device of a kind of browser, it is intended to improve The access efficiency of the page.
To achieve the above object, the invention proposes a kind of memory release methods of browser, comprising the following steps:
When detecting the release request of browser memory, all accession pages of browser are obtained;
According to history access time and history page focal characteristics, the rate of specific gravity of all accession pages is calculated;
All accession pages are ranked up according to the rate of specific gravity, and discharge the smallest accession page of rate of specific gravity, until Browser memory is lower than a preset threshold.
Accordingly, the invention also provides a kind of memory release devices of browser, comprising:
Page acquisition module when reaching critical value for detecting browser memory, obtains all access pages of browser Face;
Specific gravity computing module, for calculating all access according to history access time and history page focal characteristics The rate of specific gravity of the page;
Release module, for being ranked up according to the rate of specific gravity to all accession pages, and it is the smallest to discharge rate of specific gravity Accession page, until browser memory is lower than a preset threshold.
It is special according to history access time and history page focus when the present invention is by detecting the release request of browser memory Sign calculates the rate of specific gravity of accession page, so as to filter out the best suitably superseded page, reduce the quantity for eliminating the page and The possibility recovery rate for eliminating the page is reduced, waiting time when user switches history accession page is reduced, improves the page Access efficiency.
Detailed description of the invention
Fig. 1 is the flow diagram of the memory release method first embodiment of browser of the present invention;
Fig. 2 is the process that the rate of specific gravity of accession page is calculated in the memory release method first embodiment of browser of the present invention Schematic diagram;
Fig. 3 is the schematic diagram of interface display that browser of the present invention opens multiple windows;
Fig. 4 is the flow diagram of the memory release method second embodiment of browser of the present invention;
Fig. 5 is the process that the rate of specific gravity of accession page is calculated in the memory release method second embodiment of browser of the present invention Schematic diagram;
Fig. 6 is the flow diagram of the memory release method 3rd embodiment of browser of the present invention;
Fig. 7 is the functional block diagram of the memory release device first embodiment of browser of the present invention;
Fig. 8 is the functional module signal of specific gravity computing module in the memory release device first embodiment of browser of the present invention Figure;
Fig. 9 is the functional module signal of specific gravity computing module in the memory release device second embodiment of browser of the present invention Figure;
Figure 10 is the functional block diagram of the memory release device 3rd embodiment of browser of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Technical solution of the present invention is further illustrated with reference to the accompanying drawings and specific embodiments of the specification.It should be appreciated that this Locate described specific embodiment to be only used to explain the present invention, be not intended to limit the present invention.
Main idea is that providing a kind of memory release method of browser, it is applied in browser, to browsing The memory of device is discharged, and to guarantee that browser has enough memories to carry out the access of the page, further increases the access of the page Efficiency.When user accesses a page by browser, after browser will obtain corresponding page data from internet, by it It is stored in memory the history of forming page, to be further continued for next time accessing.Due to existing browser can open simultaneously it is multiple Window, and again include multiple subpage frames, that is, the link page in the page of each window.Therefore, in mobile terminal In the case where having limit, need to clear up the history page of committed memory in time, so that user accesses the new page.It below will be right The memory release method of browser of the present invention is described in detail.
Referring to Fig.1, a kind of one embodiment of memory release method of browser of the present invention is proposed.The browser of the embodiment Memory release method the following steps are included:
Step S110, when detecting the release request of browser memory, all accession pages of browser are obtained;
Browser memory release request can be triggered by user to be generated, for example, finding page when user is in browsing pages Face access speed is slower, then can trigger the memory release function in browser, be discharged with the memory to browser.This is clear Device memory of looking at release request can also be generated with clocked flip, which can be arranged according to specific circumstances, such as make It is primary every triggering in 30 minutes during browser.Browser memory release request can also be according to the occupancy feelings of memory Condition triggers, such as a threshold value is arranged, and when occupied memory is more than the threshold value, then triggers the release request of browser memory.
During browser execution, detecting real-time browser memory is discharged and is requested, is released if detecting browser memory When putting request, then all accession pages of browser are obtained.It is understood that the browser execution includes being currently running And running background.
Step S120, according to history access time and history page focal characteristics, the ratio of all accession pages is calculated Weight values;
The history access time refers to the access time of current page, can specifically include start access current page when Between point, certainly can also include starting to access current page and leaving the time interval of current page.History page focal characteristics Refer to window belonging to current page whether be focus window or current page whether be belonging to window the focus page.It obtains All accession page of browser when, all visits will be calculated according to history access time and history page focal characteristics Ask the rate of specific gravity of the page.If current page belongs to the focus page of focus window, rate of specific gravity highest, if current page is gone through The access time of the focus page away from focus window history access time is remoter, then its rate of specific gravity is minimum.
Step S130, all accession pages are ranked up according to the rate of specific gravity, and discharge the smallest access of rate of specific gravity The page, until browser memory is lower than a preset threshold.
The rate of specific gravity obtained is calculated step S120, accession page is ranked up, and discharge the smallest access of rate of specific gravity The page, until the memory of browser is lower than safety value, which can be arranged according to specific circumstances.
When the embodiment of the present invention is by detecting the release request of browser memory, according to history access time and history page Focal characteristics calculate the rate of specific gravity of accession page, so as to filter out the best suitably superseded page, reduce and eliminate the page Quantity and the possibility recovery rate for reducing the superseded page reduce waiting time when user switches history accession page, improve The access efficiency of the page.
Further, include: referring to Fig. 2, above-mentioned steps S120
Step S121, the initial specific gravity value for presetting each accession page is W0;
Step S122, judge the current accessed page whether be belonging to window the focus page;It is to be transferred to step S123, it is no Then it is transferred to step S124;
Step S123, it calculates and obtains corresponding rate of specific gravity W1=W0+ △ W1, wherein △ W1 is preset first threshold;
Step S124, judge whether window belonging to the current accessed page is focus window;It is to be transferred to step S125;It is no Then it is transferred to step S126;
Step S125, it calculates and obtains corresponding rate of specific gravity W2=W1+ △ W2, wherein △ W2 is preset second threshold, and is turned Enter step S126;
Step S126, calculate the distance between focus page of each accession page and affiliated window △ W3=| H (i)-Y (i) |, and calculate corresponding rate of specific gravity W3=W2- △ W3*2;Wherein H (i) is the corresponding page access queue of window of serial number i Item number, Y (i) are the corresponding focus page serial number of the window;
Step S127, using the rate of specific gravity W3 as the final rate of specific gravity of accession page.
In the present embodiment, first by the current accessed page whether be belonging to window the focus page, then judge currently to visit again Ask whether window belonging to the page is focus window, finally calculates again between each accession page and the focus page of affiliated window Distance △ W3=| H (i)-Y (i) |, to calculate corresponding rate of specific gravity, and the rate of specific gravity is ranked up, by the rate of specific gravity Final rate of specific gravity of the W3 as accession page.
Referring to Fig. 3, the browser execution is on mobile terminal 100, and the page of browser access is in the aobvious of mobile terminal 100 Show and is shown in portion 110.Since browser can open simultaneously multiple browser windows, to browse the different pages.Therefore pass through touching Hair window shows that symbol 130 can show the window of all openings, such as 121 He of first window on window display area 120 Second window 122, such as Tencent's Netscape News and life channel window.Wherein in each window again accessible homepage and its Subpage frame, that is, the link page.For example, the page listings accessed in first window 121 are as shown in table 1 below:
The page 1
The page 2
The page 3
The page 4
The page 5
Wherein first window 121 is focus window.The page 1, the page 2, the page 3, the page 4 and the page 5 are in the first window The page accessed on mouth 121, and arranged according to history access time.In addition, the history access time distance of the page 5 is worked as The preceding time is nearest, is the focus page of first window 121.The rate of specific gravity calculating process of above-mentioned accession page is as follows:
The rate of specific gravity initial value of the page 1, the page 2, the page 3, the page 4 and the page 5 is set as W0 first.Then according to history Access time and history page focal characteristics calculate the rate of specific gravity of accession page.By taking the page 1 as an example, since the page 1 is not affiliated The focus page of window, therefore rate of specific gravity does not operate.The window as belonging to the page 1 be first window 121, and this first Window 121 is focus window, so rate of specific gravity W=W0+ △ W2, in the present embodiment, and W2=4 △.Then 1 distance of the page is calculated again The distance between focus page of affiliated window, that is, calculate distance △ W3 between the page 1 and the page 3=| H (i)-Y (i) |=| 1-5 |=4, then calculate last rate of specific gravity W=(W0+ △ W2)-△ W3*2=W0+4-4*2=W0-4.Then according to the meter of front Calculate the rate of specific gravity that step successively calculates the page 2, the page 3, the page 4, the page 5.It similarly calculates in other browser windows and accesses page The rate of specific gravity in face.
Finally the rate of specific gravity of all accession pages is ranked up, deletes the smallest accession page of rate of specific gravity and its in memory In related data, with releasing memory.
Further, referring to Fig. 4, the process signal of the memory release method second embodiment of browser of the present invention is proposed Figure.The memory release method of the browser of the embodiment includes:
Step S210, when detecting the release request of browser memory, all accession pages of browser are obtained;
Step S220, according to history access time and history page focal characteristics, the ratio of all accession pages is calculated Weight values;
Step S230, according to history page committed memory, the rate of specific gravity of all accession pages is updated.
Step S240, all accession pages are ranked up according to updated rate of specific gravity, and it is the smallest to discharge rate of specific gravity Accession page, until browser memory is lower than a preset threshold.
Wherein the step S110 of the working principle of step S210, step S220 and step S240 and above-mentioned first embodiment, Step S120, the working principle of step S130 is almost the same, and details are not described herein again.Difference with above-mentioned first embodiment exists In in addition to calculating the specific gravity of accession page according to history access time and history page focal characteristics in the embodiment of the present invention , will also be according to history page committed memory after value, then the rate of specific gravity of accession page is calculated, to obtain final rate of specific gravity.
Include: referring to Fig. 5, above-mentioned steps S230
Step S231, it when the occupied memory of accession page is greater than preset third threshold value, calculates and obtains corresponding ratio Weight values W4=W3- △ W4, wherein △ W4 is preset 4th threshold value, and W3 is according to history access time and history page focus The rate of specific gravity of the page of feature calculation;
Step S232, using the rate of specific gravity W4 as the final rate of specific gravity of accession page.
As described above, the corresponding rate of specific gravity of acquisition is being calculated according to history access time and history page focal characteristics After W3, also the last rate of specific gravity of accession page will be calculated according to history page committed memory.If specifically: occupied by the page 1 In save as 16kb, and preset third threshold value is 20kb.Since the memory that the page 1 occupies is less than preset third threshold value, So not doing exercises work to rate of specific gravity.If saving as 25kb in the page 3 is occupied, since the occupied memory of the page 3 is greater than in advance If third threshold value, therefore calculate and obtain corresponding rate of specific gravity W4=W3+ △ W4, in the present embodiment, which can be fixed for one Value, can also according to history page occupy memory and preset third threshold value between difference and corresponding △ W4 is set. The rate of specific gravity of all accession pages in each browser window is calculated, similarly to obtain the last rate of specific gravity of accession page.Finally The rate of specific gravity of all accession pages is ranked up, the smallest accession page of rate of specific gravity and its dependency number in memory are deleted According to releasing memory.
In addition to the specific gravity according to history access time and history page focal characteristics calculating accession page in the present embodiment Value calculates the rate of specific gravity of accession page also according to the memory that history page occupies, so that when needing releasing memory, it can With the more acurrate unwanted accession page of release, the access efficiency of the page is further increased.
Referring to Fig. 6, the memory release method 3rd embodiment of browser of the present invention is proposed.In the embodiment, above-mentioned steps Before S110 further include:
Step S100, a browser control part management list is created, in browser accession page, corresponding control will be generated Part, and the control is added in control management list.
Above-mentioned steps S130 includes: to be ranked up according to rate of specific gravity to all accession pages, obtains the smallest visit of rate of specific gravity It asks the page, and it is deleted from browser control part management list, while deleting corresponding access data from memory.
Further, the memory release method 3rd embodiment of browser of the present invention is proposed.In the embodiment, one will be created A browser control part management list, the access for storing history page record, i.e. one page of every access, will all generate corresponding A control, and the control of the generation will store in the list.Therefore, in releasing memory, not only by memory to The related data of the accession page of deletion is deleted, while will also delete the record in browser control part management list.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the memory release method of above-mentioned browser can be with software product Form embodies, which is stored in a storage medium (such as ROM/RAM, magnetic disk, CD), if including Dry processor tune of the instruction so that a terminal device (can be mobile phone, computer, server or the network equipment etc.) With and execute method described in each embodiment of the present invention.
Referring to Fig. 7, a kind of memory release device first embodiment of browser of the present invention is proposed.The memory of the embodiment is released Putting device includes:
Page acquisition module 110 when reaching critical value for detecting browser memory, obtains all access of browser The page;
Specific gravity computing module 120, for calculating all visits according to history access time and history page focal characteristics Ask the rate of specific gravity of the page;
Release module 130 for being ranked up according to the rate of specific gravity to all accession pages, and discharges rate of specific gravity minimum Accession page, until browser memory be lower than a preset threshold.
During browser execution, detecting module 110, which discharges detecting real-time browser memory, is requested, if detecting clear When device memory of looking at release request, then all accession pages of browser are obtained.It is understood that the browser execution includes working as Before be currently running and running background.When obtaining all accession page of browser, specific gravity computing module 120 will be according to history Access time and history page focal characteristics, calculate the rate of specific gravity of all accession pages.If current page belongs to focus window Mouthful the focus page, then its rate of specific gravity highest, if the visit of the focus page of the history access time of current page away from focus window Ask that the time is remoter, then its rate of specific gravity is minimum.Then, release module 130 is according to the rate of specific gravity of accession page calculated, to access The page is ranked up, and discharges the smallest accession page of rate of specific gravity, and until the memory of browser is lower than safety value, which can To be arranged according to specific circumstances.
When the embodiment of the present invention is by detecting the release request of browser memory, according to history access time and history page Focal characteristics calculate the rate of specific gravity of accession page, so as to filter out the best suitably superseded page, reduce and eliminate the page Quantity and the possibility recovery rate for reducing the superseded page reduce waiting time when user switches history accession page, improve The access efficiency of the page.
Further, referring to Fig. 8, above-mentioned specific gravity computing module 120 includes:
Default unit 121, the initial specific gravity value for presetting each accession page are W0;
First computing unit 122 when for being the focus page of affiliated window when accession page, calculating and obtaining corresponding ratio Weight values W1=W0+ △ W1, wherein △ W1 is preset first threshold;
When second computing unit 123 for the window belonging to the accession page is focus window, calculates and obtain corresponding ratio Weight values W2=W1+ △ W2, wherein △ W2 is preset second threshold;
Third computing unit 124, the distance between focus page for calculating each accession page and affiliated window △ W3=| H (i)-Y (i) |, and calculate corresponding rate of specific gravity W3=W2- △ W3*2;Wherein H (i) is the corresponding page of window of serial number i Interview asks that queue item number, Y (i) are the corresponding focus page serial number of the window;
Specific gravity obtaining unit 125, for using the rate of specific gravity W3 as the final rate of specific gravity of accession page.
In the present embodiment, the first computing unit 122 first by the current accessed page whether be belonging to window the focus page, so The second computing unit 123 judges whether window belonging to the current accessed page is focus window again afterwards, last third computing unit Calculate again the distance between the focus page of each accession page and affiliated window △ W3=| H (i)-Y (i) |, to calculate corresponding Rate of specific gravity, and using the rate of specific gravity W3 as the final rate of specific gravity of accession page.So that release module 130 is to all access pages The rate of specific gravity in face is ranked up, and the smallest accession page of rate of specific gravity and its related data in memory is deleted, with releasing memory.
Further, referring to Fig. 9, the memory release device second embodiment of browser of the present invention is proposed.Implement first On the basis of example, above-mentioned specific gravity computing module 120 further include:
4th computing unit 126, for when the occupied memory of accession page is greater than preset third threshold value, calculating to be obtained Corresponding rate of specific gravity W4=W3- △ W4 is obtained, wherein △ W4 is preset 4th threshold value, and W3 is according to history access time and to go through The rate of specific gravity of the page of history page focus feature calculation;
The specific gravity obtaining unit 125, for using the rate of specific gravity W4 as the final rate of specific gravity of accession page.
In addition to calculating accession page according to history access time and history page focal characteristics in the embodiment of the present invention , will also be according to history page committed memory after rate of specific gravity, then the rate of specific gravity of accession page is calculated, to obtain final specific gravity Value, so that more acurrate can discharge unwanted accession page when needing releasing memory, further increase the visit of the page Ask efficiency.
Referring to Fig.1 0, propose the memory release device 3rd embodiment of browser of the present invention.Based on the above embodiment, this reality Apply the memory release device of the browser of example further include:
List of controls creating unit 140, for creating a browser control part management list, in browser accession page When, corresponding control will be generated, and the control is added in control management list.
Above-mentioned release module 130 is also used to: being ranked up according to rate of specific gravity to all accession pages, it is minimum to obtain rate of specific gravity Accession page, and it is deleted from browser control part management list, while corresponding access data are deleted from memory.
In the embodiment, a browser control part management list will be created, the access for storing history page records, i.e., One page of every access will all generate a corresponding control, and the control of the generation will be stored in the list.Therefore, In releasing memory, not only the related data of accession page to be deleted in memory is deleted, while will also delete browser control Record in part management list.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations Technical field, be included within the scope of the present invention.

Claims (10)

1. a kind of memory release method of browser, which comprises the following steps:
When detecting the release request of browser memory, all accession pages of browser are obtained;
According to history access time and history page focal characteristics, the rate of specific gravity of all accession pages is calculated;All visits It asks in the page, the rate of specific gravity and accession page of each accession page are partitioned into negative away from the access time of the focus page of focus window It is related;
All accession pages are ranked up according to the rate of specific gravity, and discharge the smallest accession page of rate of specific gravity, until browsing Device memory is lower than a preset threshold.
2. the memory release method of browser according to claim 1, which is characterized in that described according to history access time And history page focus, the rate of specific gravity for calculating all accession pages include:
The initial specific gravity value for presetting each accession page is W0;
When accession page is the focus page of affiliated window, calculates and obtain corresponding rate of specific gravity W1=W0+ △ W1, wherein △ W1 For preset first threshold;
When the window belonging to the accession page is focus window, calculates and obtain corresponding rate of specific gravity W2=W1+ △ W2, wherein △ W2 For preset second threshold;
Calculate the distance between the focus page of each accession page and affiliated window △ W3=| H (i)-Y (i) |, and calculate phase The rate of specific gravity W3=W2- △ W3*2 answered;Wherein H (i) is the corresponding page access queue item number of window of serial number i, and Y (i) is The corresponding focus page serial number of the window;
Using the rate of specific gravity W3 as the final rate of specific gravity of accession page.
3. the memory release method of browser according to claim 2, which is characterized in that described according to history access time And history page focal characteristics, after the rate of specific gravity for calculating all accession pages further include:
When the occupied memory of accession page is greater than preset third threshold value, calculates and obtain corresponding rate of specific gravity W4=W3- △ W4, wherein △ W4 is preset 4th threshold value, and W3 is the page calculated according to history access time and history page focal characteristics The rate of specific gravity in face;
Using the rate of specific gravity W4 as the final rate of specific gravity of accession page.
4. the memory release method of browser according to claim 1, which is characterized in that described to detect browser memory When release request, before all accession pages of acquisition browser further include:
A browser control part management list is created, in browser accession page, corresponding control will be generated, and by the control It is added in control management list.
5. the memory release method of browser according to claim 4, which is characterized in that it is described according to rate of specific gravity to all Accession page is ranked up, and is discharged the smallest accession page of rate of specific gravity and included:
All accession pages are ranked up according to rate of specific gravity, obtain the smallest accession page of rate of specific gravity, and by it from browser It is deleted in control management list, while deleting corresponding access data from memory.
6. a kind of memory release device of browser characterized by comprising
Page acquisition module when reaching critical value for detecting browser memory, obtains all accession pages of browser;
Specific gravity computing module, for calculating all accession pages according to history access time and history page focal characteristics Rate of specific gravity;In all accession pages, the rate of specific gravity and accession page of each accession page are away from the focus page of focus window Access time interval be negatively correlated;
Release module for being ranked up according to the rate of specific gravity to all accession pages, and discharges the smallest access of rate of specific gravity The page, until browser memory is lower than a preset threshold.
7. the memory release device of browser according to claim 6, which is characterized in that the computing module includes:
Default unit, the initial specific gravity value for presetting each accession page are W0;
First computing unit when for being the focus page of affiliated window when accession page, calculating and obtaining corresponding rate of specific gravity W1 =W0+ △ W1, wherein △ W1 is preset first threshold;
When second computing unit for the window belonging to the accession page is focus window, calculates and obtain corresponding rate of specific gravity W2 =W1+ △ W2, wherein △ W2 is preset second threshold;
Third computing unit, the distance between focus page for calculating each accession page and affiliated window △ W3=| H (i)-Y (i) |, and calculate corresponding rate of specific gravity W3=W2- △ W3*2;The corresponding page of window that wherein H (i) is serial number i is visited Ask that queue item number, Y (i) are the corresponding focus page serial number of the window;
Specific gravity obtaining unit, for using the rate of specific gravity W3 as the final rate of specific gravity of accession page.
8. the memory release device of browser according to claim 7, which is characterized in that the computing module further include:
4th computing unit, for calculating and obtaining accordingly when the occupied memory of accession page is greater than preset third threshold value Rate of specific gravity W4=W3- △ W4, wherein △ W4 be preset 4th threshold value, W3 be according to history access time and history page The rate of specific gravity for the page that focal characteristics calculate;
The specific gravity obtaining unit, for using the rate of specific gravity W4 as the final rate of specific gravity of accession page.
9. the memory release device of browser according to claim 6, which is characterized in that further include:
List of controls creating unit will be generated for creating a browser control part management list in browser accession page Corresponding control, and the control is added in control management list.
10. the memory release device of browser according to claim 9, which is characterized in that the release module is also used to:
All accession pages are ranked up according to rate of specific gravity, obtain the smallest accession page of rate of specific gravity, and by it from browser It is deleted in control management list, while deleting corresponding access data from memory.
CN201310554944.9A 2013-11-08 2013-11-08 The memory release method and device of browser Active CN104636364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310554944.9A CN104636364B (en) 2013-11-08 2013-11-08 The memory release method and device of browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310554944.9A CN104636364B (en) 2013-11-08 2013-11-08 The memory release method and device of browser

Publications (2)

Publication Number Publication Date
CN104636364A CN104636364A (en) 2015-05-20
CN104636364B true CN104636364B (en) 2019-04-16

Family

ID=53215134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310554944.9A Active CN104636364B (en) 2013-11-08 2013-11-08 The memory release method and device of browser

Country Status (1)

Country Link
CN (1) CN104636364B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291483B (en) * 2016-04-01 2021-02-05 深圳富泰宏精密工业有限公司 Method for intelligently deleting application program and electronic equipment
CN106407435A (en) * 2016-09-28 2017-02-15 乐视控股(北京)有限公司 Browser page display processing method and device
CN109815006A (en) * 2018-12-13 2019-05-28 平安科技(深圳)有限公司 Browser EMS memory management process, device, computer equipment and storage medium
CN112217940B (en) * 2020-08-28 2021-12-24 波克科技股份有限公司 Memory release method and related device
CN114153634B (en) * 2021-12-03 2024-05-28 上海交通大学 Inter-process communication system and operation platform based on domestic Loongson processor
CN115982486B (en) * 2022-12-28 2023-09-19 北京海泰方圆科技股份有限公司 Method and device for optimizing memory

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706827A (en) * 2009-08-28 2010-05-12 四川虹微技术有限公司 Method for caching file of embedded browser
EP2360892A1 (en) * 2010-02-12 2011-08-24 Research In Motion Limited Method, system and apparatus for delivering web content
CN102479249A (en) * 2010-11-26 2012-05-30 中国科学院声学研究所 Method for eliminating cache data of memory of embedded browser
CN102622348A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Method and device enabling plurality of windows to perform analytical display on network page simultaneously
CN102880551A (en) * 2012-07-28 2013-01-16 深圳市同洲电子股份有限公司 Method, system and browser for distributing hybrid memory
CN103177095A (en) * 2013-03-15 2013-06-26 成都三零凯天通信实业有限公司 Embedded browser and implement method thereof
CN103294718A (en) * 2012-02-29 2013-09-11 腾讯科技(深圳)有限公司 Method and device for web page cache management
CN103365721A (en) * 2012-04-06 2013-10-23 腾讯科技(深圳)有限公司 Method for regulating internal storage of mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7043606B2 (en) * 2002-10-01 2006-05-09 America Online, Inc. Automatic browser web cache resizing system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706827A (en) * 2009-08-28 2010-05-12 四川虹微技术有限公司 Method for caching file of embedded browser
EP2360892A1 (en) * 2010-02-12 2011-08-24 Research In Motion Limited Method, system and apparatus for delivering web content
CN102479249A (en) * 2010-11-26 2012-05-30 中国科学院声学研究所 Method for eliminating cache data of memory of embedded browser
CN102622348A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Method and device enabling plurality of windows to perform analytical display on network page simultaneously
CN103294718A (en) * 2012-02-29 2013-09-11 腾讯科技(深圳)有限公司 Method and device for web page cache management
CN103365721A (en) * 2012-04-06 2013-10-23 腾讯科技(深圳)有限公司 Method for regulating internal storage of mobile terminal and mobile terminal
CN102880551A (en) * 2012-07-28 2013-01-16 深圳市同洲电子股份有限公司 Method, system and browser for distributing hybrid memory
CN103177095A (en) * 2013-03-15 2013-06-26 成都三零凯天通信实业有限公司 Embedded browser and implement method thereof

Also Published As

Publication number Publication date
CN104636364A (en) 2015-05-20

Similar Documents

Publication Publication Date Title
CN104636364B (en) The memory release method and device of browser
KR102245025B1 (en) Memory return method and device
JP6594534B2 (en) Text information processing method and device
CN106886570B (en) Page processing method and device
WO2018127063A1 (en) Application data processing method and apparatus, and storage medium
CN103559299B (en) Method, device and mobile terminal for cleaning up files
EP3502878B1 (en) Method for preloading application and terminal device
US9798827B2 (en) Methods and devices for preloading webpages
CN106909281B (en) Method and device for switching application internal interfaces
CN107784516A (en) Advertisement placement method and device
CN106599239A (en) Webpage content data acquisition method and server
US10015253B2 (en) System and method for preemptive request processing
WO2019196878A1 (en) Method for memory management and related device
CN111966938B (en) Configuration method and system for realizing loading speed improvement of front-end page of cloud platform
CN105893471B (en) Data processing method and electronic equipment
CN110647392A (en) Intelligent elastic expansion method based on container cluster
CN111966887A (en) Dynamic caching method and device, electronic equipment and storage medium
CN106293805A (en) The method and device that program loads
CN103677893B (en) Method for reducing size of image file of starting up and arithmetic device
WO2019206260A1 (en) Method and apparatus for reading file cache
EP2940600A1 (en) Data scanning method and device
CN109656683A (en) A kind of virtual machine management system and method
CN102843369B (en) The Network Access Method at UI interface and system
CN102902735B (en) A kind of IPTV IPTV searches for caching method and system
CN110019372A (en) Data monitoring method, device, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221130

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518044, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.