CN104636364A - Method and device for freeing memory of browser - Google Patents

Method and device for freeing memory of browser Download PDF

Info

Publication number
CN104636364A
CN104636364A CN201310554944.9A CN201310554944A CN104636364A CN 104636364 A CN104636364 A CN 104636364A CN 201310554944 A CN201310554944 A CN 201310554944A CN 104636364 A CN104636364 A CN 104636364A
Authority
CN
China
Prior art keywords
page
browser
specific gravity
rate
accession
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.)
Granted
Application number
CN201310554944.9A
Other languages
Chinese (zh)
Other versions
CN104636364B (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 method for freeing the memory of a browser. The method for freeing the memory of the browser comprises the following steps that when a browser memory freeing request is detected, all access pages of the browser are obtained; the proportion values of all the access pages are calculated according to historical access times and historical page focus characteristics; all the access pages are ranked according to the proportion values, and the access page with the smallest proportion value is freed till the memory of the browser is smaller than a preset threshold value. The invention further discloses a device for freeing the memory of the browser. According to the method and device for freeing the memory of the browser, when the browser memory freeing request is detected, the proportion values of the access pages are calculated according to the historical access times and the historical page focus characteristics, then the page which is most suitable for being eliminated is screened out, the number of the pages which are eliminated is reduced, the possibility of recovery of the eliminated pages is lowered, waiting time is shortened for a user when historical access pages are switched, and the efficiency of having access to the pages is improved.

Description

The memory release method of browser and device
Technical field
The present invention relates to computer realm, particularly relate to a kind of memory release method and device of browser.
Background technology
Multiple window page can be accessed, to obtain the information that oneself needs by the browser on terminal device simultaneously.But terminal browser product uses browser control part to access a webpage, will take certain internal memory, and therefore once can only open the page of some.And the history page of accessing also will preserve, so that access next time of user.In order to make browser control part can accession page glibly, then must ensure enough internal memories, therefore need releasing memory in time.When internal memory reaches a critical value, history access time comparison algorithm will be adopted, calculates partial history accession page the earliest in prior art, some or all of for the browser control part of this page internal memory release.
Above-mentioned internal memory release embodiments may discharge the focus page of non-focus window, thus when causing user's switch window, needs the recovery waiting for the page, the page committed memory that therefore cannot discharge fast and efficiently.
Summary of the invention
The fundamental purpose of technical solution of the present invention is to provide a kind of memory release method and device of browser, is intended to the access efficiency improving the page.
For achieving the above object, the present invention proposes a kind of memory release method of browser, comprise the following steps:
When detecting browser internal memory releasing request, obtain the accession page that browser is all;
According to history access time and history page focal characteristics, calculate the rate of specific gravity of all accession pages;
According to described rate of specific gravity, all accession pages are sorted, and the accession page that release ratio weight values is minimum, until browser internal memory is lower than a predetermined threshold value.
Accordingly, the invention allows for a kind of internal memory releasing means of browser, comprising:
Page acquisition module, for detect browser internal memory reach critical value time, obtain all accession page of browser;
Proportion computing module, for according to history access time and history page focal characteristics, calculates the rate of specific gravity of all accession pages;
Release module, for sorting to all accession pages according to described rate of specific gravity, and the accession page that release ratio weight values is minimum, until browser internal memory is lower than a predetermined threshold value.
When the present invention is by detecting browser internal memory releasing request, the rate of specific gravity of accession page is calculated according to history access time and history page focal characteristics, thus the best suitable superseded page can be filtered out, reduce the quantity of eliminating the page and the possible recovery rate reducing the superseded page, minimizing user switches stand-by period when history accession page, improves the access efficiency of the page.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of memory release method first embodiment of browser of the present invention;
Fig. 2 is the schematic flow sheet calculating the rate of specific gravity of accession page in memory release method first embodiment of browser of the present invention;
Fig. 3 is the interface display schematic diagram that multiple window opened by browser of the present invention;
Fig. 4 is the schematic flow sheet of memory release method second embodiment of browser of the present invention;
Fig. 5 is the schematic flow sheet calculating the rate of specific gravity of accession page in memory release method second embodiment of browser of the present invention;
Fig. 6 is the schematic flow sheet of memory release method the 3rd embodiment of browser of the present invention;
Fig. 7 is the high-level schematic functional block diagram of internal memory releasing means first embodiment of browser of the present invention;
Fig. 8 is the high-level schematic functional block diagram of proportion computing module in internal memory releasing means first embodiment of browser of the present invention;
Fig. 9 is the high-level schematic functional block diagram of proportion computing module in internal memory releasing means second embodiment of browser of the present invention;
Figure 10 is the high-level schematic functional block diagram of internal memory releasing means the 3rd embodiment of browser of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Technical scheme of the present invention is further illustrated below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Main thought of the present invention is to provide a kind of memory release method of browser, is applied in browser, discharges the internal memory of browser, to ensure that browser has enough internal memories to carry out the access of the page, improves the access efficiency of the page further.When user is by browser access one page, browser will obtain after corresponding page data from internet, will be stored in the history of forming page in internal memory, to continue access next time again.Because existing browser can open multiple window simultaneously, and comprise again multiple subpage frame in the page of each window, namely link the page.Therefore, when the limited memory of mobile terminal, need the history page of clearing up committed memory in time, access the new page for user.Be described in detail to the memory release method of browser of the present invention below.
With reference to Fig. 1, propose memory release method one embodiment of a kind of browser of the present invention.The memory release method of the browser of this embodiment comprises the following steps:
Step S110, when detecting browser internal memory releasing request, obtain the accession page that browser is all;
This browser internal memory releasing request can trigger generation by user, such as, when user is at browsing pages, finds that page access speed is comparatively slow, then can trigger the internal memory release function in browser, to discharge the internal memory of browser.This browser internal memory releasing request also can produce by clocked flip, and this time interval can be arranged according to specific circumstances, such as, use in browser process, triggered once every 30 minutes.This browser internal memory releasing request can also trigger according to the situation that takies of internal memory, such as, arrange a threshold value, when shared internal memory exceedes this threshold value, then triggers browser internal memory releasing request.
In browser execution process, by detecting real-time browser internal memory releasing request, if when detecting browser internal memory releasing request, then obtain all accession pages of browser.Be understandable that, this browser execution comprises current that running with running background.
Step S120, according to history access time and history page focal characteristics, calculate the rate of specific gravity of all accession pages;
This history access time refers to and specifically can comprise access time of current page the time point starting to access current page, certainly can also comprise the time interval starting to access current page Yu leave current page.History page focal characteristics refers to whether the window belonging to current page is focus window, or whether current page is the focus page of affiliated window.When obtaining all accession page of browser, according to history access time and history page focal characteristics, the rate of specific gravity of all accession pages will be calculated.If current page belongs to the focus page of focus window, then its rate of specific gravity is the highest, if the history access time of current page is far away apart from the access time of the focus page of focus window, then its rate of specific gravity is minimum.
Step S130, according to described rate of specific gravity, all accession pages to be sorted, and the accession page that release ratio weight values is minimum, until browser internal memory is lower than a predetermined threshold value.
Step S120 is calculated to the rate of specific gravity obtained, accession page is sorted, and the accession page that release ratio weight values is minimum, until the internal memory of browser is lower than safety value, this safety value can be arranged according to specific circumstances.
When the embodiment of the present invention is by detecting browser internal memory releasing request, the rate of specific gravity of accession page is calculated according to history access time and history page focal characteristics, thus the best suitable superseded page can be filtered out, reduce the quantity of eliminating the page and the possible recovery rate reducing the superseded page, minimizing user switches stand-by period when history accession page, improves the access efficiency of the page.
Further, with reference to Fig. 2, above-mentioned steps S120 comprises:
The initial specific gravity value of step S121, default each accession page is W0;
Step S122, judge that whether the current accessed page is the focus page of affiliated window; Be proceed to step S123, otherwise proceed to step S124;
Step S123, calculating obtain corresponding rate of specific gravity W1=W0+ △ W1, and wherein △ W1 is default first threshold;
Step S124, judge whether the window belonging to the current accessed page is focus window; Proceed to step S125; Otherwise proceed to step S126;
Step S125, calculating obtain corresponding rate of specific gravity W2=W1+ △ W2, and wherein △ W2 is default Second Threshold, and proceeds to step S126;
Step S126, calculate each accession page and affiliated window the focus page between distance △ W3=|H (i)-Y (i) |, and calculate corresponding rate of specific gravity W3=W2-△ W3*2; Wherein H (i) for sequence number be the page access queue item number that the window of i is corresponding, Y (i) is focus page sequence number corresponding to this window;
Step S127, using the final rate of specific gravity of described rate of specific gravity W3 as accession page.
In the present embodiment, it is whether first the focus page of affiliated window by the current accessed page, and then judge whether the window belonging to the current accessed page is focus window, distance △ W3=|H (i)-Y (i) between the last focus page calculating each accession page and affiliated window again |, thus calculate corresponding rate of specific gravity, and this rate of specific gravity is sorted, using the final rate of specific gravity of described rate of specific gravity W3 as accession page.
With reference to Fig. 3, this browser execution is on mobile terminal 100, and the page of browser access shows on the display part 110 of mobile terminal 100.Multiplely window is browsed, to browse the different pages because browser can be opened simultaneously.Therefore all windows opened can be shown on window viewing area 120 by toggle window displaying symbol 130, such as first window 121 and Second Window 122, such as Tengxun's Netscape News and life channel window.Wherein can access homepage and subpage frame thereof again in each window, namely link the page.Such as, in first window 121, the page listings of access is 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 windows.The page 1, the page 2, the page 3, the page 4 and the page 5 are all the pages of accessing on first window 121, and arrange according to the history access time.In addition, the history access time distance current time of the page 5 is nearest, and it is the focus page of first window 121.The rate of specific gravity computation process of above-mentioned accession page is as follows:
First 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 to W0.Then the rate of specific gravity of accession page is calculated according to history access time and history page focal characteristics.For the page 1, because the page 1 is not the focus page of affiliated window, therefore rate of specific gravity does not operate.Window belonging to the page 1 is first window 121, and this first window 121 is focus window, so this rate of specific gravity W=W0+ △ W2, in the present embodiment, and △ W2=4.And then calculate the page 1 apart from affiliated window the focus page between distance, namely calculate spacing △ W3=|H (i)-Y (i) of the page 1 and the page 3 |=| 1-5|=4, then calculates last rate of specific gravity W=(W0+ △ W2)-△ W3*2=W0+4-4*2=W0-4.Then the rate of specific gravity of the page 2, the page 3, the page 4, the page 5 is calculated successively according to calculation procedure above.In like manner calculate the rate of specific gravity of accession page in other browser windows.
Finally the rate of specific gravity of all accession pages is sorted, delete the minimum accession page of rate of specific gravity and the related data in internal memory thereof, with releasing memory.
Further, with reference to Fig. 4, the schematic flow sheet of memory release method second embodiment of browser of the present invention is proposed.The memory release method of the browser of this embodiment comprises:
Step S210, when detecting browser internal memory releasing request, obtain the accession page that browser is all;
Step S220, according to history access time and history page focal characteristics, calculate the rate of specific gravity of all accession pages;
Step S230, according to history page committed memory, upgrade the rate of specific gravity of all accession pages.
Step S240, sort to all accession pages according to the rate of specific gravity after upgrading, and the accession page that release ratio weight values is minimum, until browser internal memory is lower than a predetermined threshold value.
Wherein the principle of work of step S110, the step S120 of the principle of work of step S210, step S220 and step S240 and above-mentioned first embodiment, step S130 is basically identical, just repeats no more at this.Be with the difference of above-mentioned first embodiment, except according to history access time and history page focal characteristics in the embodiment of the present invention, after calculating the rate of specific gravity of accession page, also will according to history page committed memory, calculate the rate of specific gravity of accession page again, thus obtain final rate of specific gravity.
With reference to Fig. 5, above-mentioned steps S230 comprises:
Step S231, when the internal memory shared by accession page is greater than the 3rd default threshold value, calculate and obtain corresponding rate of specific gravity W4=W3-△ W4, wherein △ W4 is the 4th default threshold value, and W3 is the rate of specific gravity of the page calculated according to history access time and history page focal characteristics;
Step S232, using the final rate of specific gravity of described rate of specific gravity W4 as accession page.
As described above, after calculating the corresponding rate of specific gravity W3 of acquisition according to history access time and history page focal characteristics, also according to history page committed memory, the rate of specific gravity that accession page is last will be calculated.Be specially: if save as 16kb in shared by the page 1, and the 3rd threshold value preset is 20kb.The internal memory taken due to this page 1 is less than the 3rd default threshold value, so not do exercises work to rate of specific gravity.If save as 25kb in shared by the page 3, internal memory shared by this page 3 is greater than the 3rd default threshold value, therefore calculate and obtain corresponding rate of specific gravity W4=W3+ △ W4, in the present embodiment, this △ W4 can be a fixing value, the difference between the internal memory that also can take according to history page and the 3rd default threshold value and arrange corresponding △ W4.In like manner calculate the rate of specific gravity of all accession pages in each browser window, to obtain the last rate of specific gravity of accession page.Finally the rate of specific gravity of all accession pages is sorted, delete the minimum accession page of rate of specific gravity and the related data in internal memory thereof, with releasing memory.
Except calculating the rate of specific gravity of accession page according to history access time and history page focal characteristics in the present embodiment, also according to the internal memory that history page takies, calculate the rate of specific gravity of accession page, thus make when needs releasing memory, can more accurately discharge unwanted accession page, improve the access efficiency of the page further.
With reference to Fig. 6, memory release method the 3rd embodiment of browser of the present invention is proposed.In this embodiment, also comprise before above-mentioned steps S110:
Step S100, an establishment browser control part managing listings, when the browser access page, will produce corresponding control, and be added in control managing listings by this control.
Above-mentioned steps S130 comprises: sort to all accession pages according to rate of specific gravity, obtains the accession page that rate of specific gravity is minimum, and it is deleted from browser control part managing listings, deletes corresponding visit data from internal memory simultaneously.
Further, memory release method the 3rd embodiment of browser of the present invention is proposed.In this embodiment, by establishment browser control part managing listings, for depositing the Visitor Logs of history page, namely often accessing a page, all will produce a corresponding control, and the control of this generation will be deposited in the list.Therefore, when releasing memory, not only the related data of accession page to be deleted in internal memory is deleted, the record simultaneously also will deleted in browser control part managing listings.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, the memory release method of above-mentioned browser can embody with the form of software product, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, or the network equipment etc.) processor call and perform the method described in each embodiment of the present invention.
With reference to Fig. 7, internal memory releasing means first embodiment of a kind of browser of the present invention is proposed.The internal memory releasing means of this embodiment comprises:
Page acquisition module 110, for detect browser internal memory reach critical value time, obtain all accession page of browser;
Proportion computing module 120, for according to history access time and history page focal characteristics, calculates the rate of specific gravity of all accession pages;
Release module 130, for sorting to all accession pages according to described rate of specific gravity, and the accession page that release ratio weight values is minimum, until browser internal memory is lower than a predetermined threshold value.
In browser execution process, detecting module 110, by detecting real-time browser internal memory releasing request, if when detecting browser internal memory releasing request, then obtains all accession pages of browser.Be understandable that, this browser execution comprises current that running with running background.When obtaining all accession page of browser, proportion computing module 120 according to history access time and history page focal characteristics, will calculate the rate of specific gravity of all accession pages.If current page belongs to the focus page of focus window, then its rate of specific gravity is the highest, if the history access time of current page is far away apart from the access time of the focus page of focus window, then its rate of specific gravity is minimum.Then, release module 130, according to the rate of specific gravity of calculated accession page, sorts to accession page, and the accession page that release ratio weight values is minimum, until the internal memory of browser is lower than safety value, this safety value can be arranged according to specific circumstances.
When the embodiment of the present invention is by detecting browser internal memory releasing request, the rate of specific gravity of accession page is calculated according to history access time and history page focal characteristics, thus the best suitable superseded page can be filtered out, reduce the quantity of eliminating the page and the possible recovery rate reducing the superseded page, minimizing user switches stand-by period when history accession page, improves the access efficiency of the page.
Further, with reference to Fig. 8, above-mentioned proportion computing module 120 comprises:
Presetting unit 121, is W0 for presetting the initial specific gravity value of each accession page;
First computing unit 122, during for being the focus page of affiliated window when accession page, calculate and obtain corresponding rate of specific gravity W1=W0+ △ W1, wherein △ W1 is default first threshold;
Second computing unit 123, for when the window belonging to accession page is focus window, calculate and obtain corresponding rate of specific gravity W2=W1+ △ W2, wherein △ W2 is default Second Threshold;
3rd computing unit 124, for calculate each accession page and affiliated window the focus page between distance △ W3=|H (i)-Y (i) |, and calculate corresponding rate of specific gravity W3=W2-△ W3*2; Wherein H (i) for sequence number be the page access queue item number that the window of i is corresponding, Y (i) is focus page sequence number corresponding to this window;
Proportion obtains unit 125, for using the final rate of specific gravity of described rate of specific gravity W3 as accession page.
In the present embodiment, whether the current accessed page is first the focus page of affiliated window by the first computing unit 122, then the second computing unit 123 judges whether the window belonging to the current accessed page is focus window again, last 3rd computing unit calculates distance △ W3=|H (i)-Y (i) between the focus page of each accession page and affiliated window again |, thus calculate corresponding rate of specific gravity, and using the final rate of specific gravity of described rate of specific gravity W3 as accession page.Sort for the rate of specific gravity of release module 130 to all accession pages, delete the minimum accession page of rate of specific gravity and the related data in internal memory thereof, with releasing memory.
Further, with reference to Fig. 9, internal memory releasing means second embodiment of browser of the present invention is proposed.On the basis of the first embodiment, above-mentioned proportion computing module 120 also comprises:
4th computing unit 126, during for being greater than the 3rd default threshold value when the internal memory shared by accession page, calculate and obtain corresponding rate of specific gravity W4=W3-△ W4, wherein △ W4 is the 4th default threshold value, and W3 is the rate of specific gravity of the page calculated according to history access time and history page focal characteristics;
Described proportion obtains unit 125, for using the final rate of specific gravity of described rate of specific gravity W4 as accession page.
Except according to history access time and history page focal characteristics in the embodiment of the present invention, after calculating the rate of specific gravity of accession page, also will according to history page committed memory, calculate the rate of specific gravity of accession page again, thus obtain final rate of specific gravity, thus make, when needs releasing memory, can more accurately discharge unwanted accession page, improve the access efficiency of the page further.
With reference to Figure 10, internal memory releasing means the 3rd embodiment of browser of the present invention is proposed.Based on above-described embodiment, the internal memory releasing means of the browser of the present embodiment also comprises:
List of controls creating unit 140, for creating a browser control part managing listings, when the browser access page, will produce corresponding control, and being added in control managing listings by this control.
Above-mentioned release module 130 also for: according to rate of specific gravity, all accession pages are sorted, obtain the minimum accession page of rate of specific gravity, and it is deleted from browser control part managing listings, from internal memory, delete corresponding visit data simultaneously.
In this embodiment, by establishment browser control part managing listings, for depositing the Visitor Logs of history page, namely often accessing a page, all will produce a corresponding control, and the control of this generation will be deposited in the list.Therefore, when releasing memory, not only the related data of accession page to be deleted in internal memory is deleted, the record simultaneously also will deleted in browser control part managing listings.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a memory release method for browser, is characterized in that, comprises the following steps:
When detecting browser internal memory releasing request, obtain the accession page that browser is all;
According to history access time and history page focal characteristics, calculate the rate of specific gravity of all accession pages;
According to described rate of specific gravity, all accession pages are sorted, and the accession page that release ratio weight values is minimum, until browser internal memory is lower than a predetermined threshold value.
2. the memory release method of browser according to claim 1, is characterized in that, described according to history access time and history page focus, the rate of specific gravity calculating all accession pages comprises:
The initial specific gravity value presetting each accession page is W0;
When accession page is the focus page of affiliated window, calculate and obtain corresponding rate of specific gravity W1=W0+ △ W1, wherein △ W1 is default first threshold;
When the window belonging to accession page is focus window, calculate and obtain corresponding rate of specific gravity W2=W1+ △ W2, wherein △ W2 is default Second Threshold;
Distance △ W3=|H (i)-Y (i) between the focus page calculating each accession page and affiliated window |, and calculate corresponding rate of specific gravity W3=W2-△ W3*2; Wherein H (i) for sequence number be the page access queue item number that the window of i is corresponding, Y (i) is focus page sequence number corresponding to this window;
Using the final rate of specific gravity of described rate of specific gravity W3 as accession page.
3. the memory release method of browser according to claim 1 and 2, is characterized in that, described according to history access time and history page focal characteristics, also comprises after calculating the rate of specific gravity of all accession pages:
When the internal memory shared by accession page is greater than the 3rd default threshold value, calculate and obtain corresponding rate of specific gravity W4=W3-△ W4, wherein △ W4 is the 4th default threshold value, and W3 is the rate of specific gravity of the page calculated according to history access time and history page focal characteristics;
Using the final rate of specific gravity of described rate of specific gravity W3 as accession page.
4. the memory release method of browser according to claim 1, is characterized in that, described in detect browser internal memory when reaching critical value, also comprise before obtaining all accession pages of browser:
Create a browser control part managing listings, when the browser access page, corresponding control will be produced, and this control is added in control managing listings.
5. the memory release method of browser according to claim 4, is characterized in that, describedly sorts to all accession pages according to rate of specific gravity, and the minimum accession page of release ratio weight values comprises:
According to rate of specific gravity, all accession pages are sorted, obtain the accession page that rate of specific gravity is minimum, and it is deleted from browser control part managing listings, from internal memory, delete corresponding visit data simultaneously.
6. an internal memory releasing means for browser, is characterized in that, comprising:
Page acquisition module, for detect browser internal memory reach critical value time, obtain all accession page of browser;
Proportion computing module, for according to history access time and history page focal characteristics, calculates the rate of specific gravity of all accession pages;
Release module, for sorting to all accession pages according to described rate of specific gravity, and the accession page that release ratio weight values is minimum, until browser internal memory is lower than a predetermined threshold value.
7. the internal memory releasing means of browser according to claim 6, is characterized in that, described computing module comprises:
Presetting unit, is W0 for presetting the initial specific gravity value of each accession page;
First computing unit, during for being the focus page of affiliated window when accession page, calculate and obtain corresponding rate of specific gravity W1=W0+ △ W1, wherein △ W1 is default first threshold;
Second computing unit, for when the window belonging to accession page is focus window, calculate and obtain corresponding rate of specific gravity W2=W1+ △ W2, wherein △ W2 is default Second Threshold;
3rd computing unit, for calculate each accession page and affiliated window the focus page between distance △ W3=|H (i)-Y (i) |, and calculate corresponding rate of specific gravity W3=W2-△ W3*2; Wherein H (i) for sequence number be the page access queue item number that the window of i is corresponding, Y (i) is focus page sequence number corresponding to this window;
Proportion obtains unit, for using the final rate of specific gravity of described rate of specific gravity W3 as accession page.
8. the internal memory releasing means of browser according to claim 6, is characterized in that, described computing module also comprises:
4th computing unit, during for being greater than the 3rd default threshold value when the internal memory shared by accession page, calculate and obtain corresponding rate of specific gravity W4=W3-△ W4, wherein △ W4 is the 4th default threshold value, and W3 is the rate of specific gravity of the page calculated according to history access time and history page focal characteristics;
Described proportion obtains unit, for using the final rate of specific gravity of described rate of specific gravity W4 as accession page.
9. the internal memory releasing means of browser according to claim 6, is characterized in that, also comprise:
List of controls creating unit, for creating a browser control part managing listings, when the browser access page, will produce corresponding control, and being added in control managing listings by this control.
10. the internal memory releasing means of browser according to claim 9, is characterized in that, described release module also for:
According to rate of specific gravity, all accession pages are sorted, obtain the accession page that rate of specific gravity is minimum, and it is deleted from browser control part managing listings, from internal memory, delete corresponding visit data simultaneously.
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 true CN104636364A (en) 2015-05-20
CN104636364B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407435A (en) * 2016-09-28 2017-02-15 乐视控股(北京)有限公司 Browser page display processing method and device
CN107291483A (en) * 2016-04-01 2017-10-24 深圳富泰宏精密工业有限公司 Intelligence deletes the method and electronic equipment of application program
CN109815006A (en) * 2018-12-13 2019-05-28 平安科技(深圳)有限公司 Browser EMS memory management process, device, computer equipment and storage medium
CN112217940A (en) * 2020-08-28 2021-01-12 深圳市修远文化创意有限公司 Memory release method and related device
CN114153634A (en) * 2021-12-03 2022-03-08 上海交通大学 Inter-process communication system and operating platform based on domestic Loongson processor
CN115982486A (en) * 2022-12-28 2023-04-18 北京海泰方圆科技股份有限公司 Method and device for optimizing memory

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060248271A1 (en) * 2002-10-01 2006-11-02 Aol Llc Automatic cache resizing system
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060248271A1 (en) * 2002-10-01 2006-11-02 Aol Llc Automatic cache resizing system
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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291483A (en) * 2016-04-01 2017-10-24 深圳富泰宏精密工业有限公司 Intelligence deletes the method and electronic equipment of application program
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
CN112217940A (en) * 2020-08-28 2021-01-12 深圳市修远文化创意有限公司 Memory release method and related device
CN114153634A (en) * 2021-12-03 2022-03-08 上海交通大学 Inter-process communication system and operating platform based on domestic Loongson processor
CN114153634B (en) * 2021-12-03 2024-05-28 上海交通大学 Inter-process communication system and operation platform based on domestic Loongson processor
CN115982486A (en) * 2022-12-28 2023-04-18 北京海泰方圆科技股份有限公司 Method and device for optimizing memory
CN115982486B (en) * 2022-12-28 2023-09-19 北京海泰方圆科技股份有限公司 Method and device for optimizing memory

Also Published As

Publication number Publication date
CN104636364B (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN104636364A (en) Method and device for freeing memory of browser
CN102946319B (en) Networks congestion control information analysis system and analytical method thereof
EP3502878B1 (en) Method for preloading application and terminal device
US11164097B2 (en) Method for preloading application, storage medium, and terminal device
CN102799447B (en) The update method of mobile terminal in house software and system
CN104166542A (en) Method and device for detecting electricity consumption of application
CN104426944B (en) Information feedback method, device and terminal
CN105095107A (en) Buffer memory data cleaning method and apparatus
US9798827B2 (en) Methods and devices for preloading webpages
CN106569733A (en) Processing method and processing device for buffered data
CN112565378A (en) Cloud native resource dynamic prediction method and device, computer equipment and storage medium
CN113032157B (en) Automatic intelligent server capacity expansion and reduction method and system
CN104301161A (en) Computing method, computing device and communication system for business quality index
CN106227887A (en) A kind of method returning the former page in browser new page
CN102801817A (en) Subscriber context-based pushing method and device
CN103902357A (en) Application program management system and method
CN104238763A (en) Information input control method and device of input box
CN104750589B (en) A kind of memory parameter adjusting method and mobile terminal
CN103218416A (en) Method, device and system for loading database
CN105357378B (en) It automatically opens WIFI list and connects the method and mobile terminal of WIFI
CN108287760A (en) Terminal equipment control method and device, terminal device and computer readable storage medium
CN105162622A (en) Storage method and system
CN102467537B (en) The method and apparatus deleting vocabulary
CN108228669A (en) A kind of method for caching and processing and device
CN106126011A (en) The resource occupation method for information display of a kind of application program and mobile terminal

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.