CN100583100C - Method and device for optimizing user interactive performance of built-in browser - Google Patents

Method and device for optimizing user interactive performance of built-in browser Download PDF

Info

Publication number
CN100583100C
CN100583100C CN200810055981A CN200810055981A CN100583100C CN 100583100 C CN100583100 C CN 100583100C CN 200810055981 A CN200810055981 A CN 200810055981A CN 200810055981 A CN200810055981 A CN 200810055981A CN 100583100 C CN100583100 C CN 100583100C
Authority
CN
China
Prior art keywords
module
picture
download
download channel
explanation
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.)
Expired - Fee Related
Application number
CN200810055981A
Other languages
Chinese (zh)
Other versions
CN101196934A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200810055981A priority Critical patent/CN100583100C/en
Publication of CN101196934A publication Critical patent/CN101196934A/en
Application granted granted Critical
Publication of CN100583100C publication Critical patent/CN100583100C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for optimizing interactive performance of embedded browser user, which sets refresh cycle, region division mode of picture and scheduling point. The method comprises taking turns to download pictures and starting a timer when each downloading channel is blocked at the scheduling point; explaining downloaded picture data according to the picture types; refreshing screen and displaying parts of explained pictures when reaching the refreshing period. At the same time, the invention also discloses a corresponding device, which comprises a buffer area, an explanation module, a display module, a scheduling module, a monitoring module and at least a downloading channel. The invention can superpose network delay of a plurality of downloading channels and reduce total delay, thereby ensuring better interactivity of user, saving system resources and enhancing debuggability of program.

Description

Optimize the method and the device of user interactive performance of built-in browser
Technical field
The present invention relates to the built-in browser technology, particularly a kind of method and device of optimizing user interactive performance of built-in browser.
Background technology
Browser is a kind of based on HTML (Hypertext Markup Language) (HTTP, Hypertext Transfer Protocol) client software, its major function is to download elements such as webpage, picture from Web server, these elements of grammar explanation according to element self, and determine the layout of each element in webpage, each element shows on screen the most at last.The element of supporting mainly is a html text at present, the Javascript text, and graphic interchange format (GIF, Graphics Interchange Format), JPEG (joint photographic experts group) (JPEG, JointPhotographic Experts Group), streaming network graphic form (PNG, Portable Network GraphicFormat), bitmap picture formats such as (BMP, Bit Map).
The entire process process of browser is roughly: inquiry of the domain name → set up TCP to connect → send HTTP request → reception data → explanation web data and image data → composing demonstration → response user operation to Web server.Browser identifies picture tag in explaining the webpage process, and obtains the URL(uniform resource locator) (URL, Uniform Resource Locator) of picture, just triggers download channel and goes to download corresponding picture file.At present, browser adopts the multitask download mechanism to come download pictures mostly, as shown in Figure 1, is example with task 1 and task 2, two downloading task are carried out simultaneously, in inquiry of the domain name, wait for set up TCP and connect, etc. HTTP request to be sent, wait for collecting in the data link all network delay to be arranged.If task is downloaded one by one, explain, show that each task can greatly influence user interactivity in the delay stack of each link so; Simultaneously, in embedded system, the multitask meeting consumes too much system resource, also can bring difficulty to software debugging.
Picture format is divided into two parts usually: the description block of front and the packed data of back.Each description block accounts for several bytes, and packed data also adopts byte-by-byte coding basically, and promptly the data of explained later can not destroyed the data that had explained the front.So, when picture file arrives browser, browser Study document head, expand (MIME according to its multi-functional internet mail, Multipurpose Internet MailExtensions) type is judged the file type of picture, according to corresponding file type picture file is decompressed, and explains the data that arrived as possible, data can't be formed one independently till the logical block in buffer zone, write down current explanation position.Display mechanism is as shown in Figure 2 line by line for traditional picture, when the data after find explaining have a complete logical block, in the time of can gathering enough line output demonstration such as picture element, data after just will explaining are set type, send the layout request, in layout, show a logical block of having explained to the user.Download, explanation, the demonstration of a logical block of a logical block finish up to whole picture demonstration.
Traditional display packing line by line is just to refresh delegation after the data after each picture is explained are gathered into delegation, so, because the screen refresh rate height not only can cause screen flicker, also can consume a large amount of cpu resources, influences user's interactivity.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method and device of optimizing user interactive performance of built-in browser, can reduce delay, saves system resource.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method of optimizing user interactive performance of built-in browser is provided with area dividing mode, the dispatching point of refresh cycle, picture, and this method also comprises:
A, each download channel are rotated download pictures when dispatching point blocks; After described download channel receives data, send the request of explanation opening timing device simultaneously to explanation module;
B, explain the image data downloaded by picture/mb-type;
C, refresh cycle, clear screen showed the part picture of having explained when arriving.
The process of each download channel download pictures further comprises in the steps A:
A1, parse the URL of picture according to picture tag;
A2, triggering download channel begin download pictures, block at dispatching point when downloading passage, and this download channel is preserved self current field data, and sends dispatch request to scheduler module; Scheduler module is suspended the download of this download channel, dispatch request is sent to transmit monitor module;
A3, monitoring module send to scheduler module with event information after listening to the incident generation that recovers described download channel;
After A4, scheduler module receive the event information of monitoring the module transmission, recover the scene of respective downloaded passage, download channel continues to carry out downloading task according to the field data of preserving.
Step C further comprises:
C1, refresh cycle arrive, and timer sends idsplay order to display module;
C2, display module judge whether the picture that explanation module is explained is complete area, if refresh whole zone and show the picture that this is regional; Otherwise, only refresh and explain the part that finishes;
C3, the current progress that refreshes of record.
This method also comprises repeated execution of steps B to C, shows until picture and finishes, and closes connection.
Above-mentioned field data includes but not limited to: the pointer of the URL of photo current correspondence, the storage address of private data, next dispatching point etc.
Described dispatching point is inquiry of the domain name, wait for set up TCP and connect, etc. HTTP request to be sent, wait for Data Receiving, close one or more in the connection.
A kind of device of optimizing user interactive performance of built-in browser, comprise buffer zone, explanation module and display module, this device also comprises scheduler module, monitors module and at least one download channel, scheduler module, download channel, buffer zone, explanation module and display module are connected successively, monitor module and connect scheduler module, timer connects display module; Wherein,
Scheduler module, according to the dispatch request of download channel, monitor the event information that module sends, the scheduling download channel is occupied or is discharged CPU;
Download channel is used for the URL download pictures according to picture, sends dispatch request to scheduler module, accepts the scheduling of scheduler module, sends the request of explanation to explanation module, and data download is sent to buffer zone;
Buffer zone is used to store the download channel data downloaded;
Explanation module is used for according to explaining request data download being interpreted as pictorial information by picture/mb-type;
Display module is used for according to the picture after the idsplay order demonstration explanation;
Timer is used to add up the refresh cycle, and when each refresh cycle arrives, sends idsplay order to display module.
The present invention realizes high performance resource downloading with single task, can be with the overlapping minimizing total delay of the network delay of a plurality of download channel, thus make user interactivity better, and can save system resource, strengthen the debugging property of program.The present invention adopts the method for zoning, periodic refreshing, when the refresh cycle arrives, certain complete area is refreshed, perhaps, only refresh and explained the subregion that finishes, like this, significantly reduce refreshing frequency, thereby can reduce the screen shake, optimized display effect.
Description of drawings
Fig. 1 is traditional multitask download mechanism synoptic diagram;
Fig. 2 is a traditional picture display mechanism synoptic diagram line by line;
Fig. 3 is a single task hyperchannel download mechanism synoptic diagram of the present invention;
Fig. 4 is many download channel download mechanism synoptic diagram among the present invention;
Fig. 5 is a picture of the present invention subregion display mechanism synoptic diagram.
Embodiment
Basic thought of the present invention is: by the multichannel mechanism of single task, promptly remove dynamically to switch each passage with a scheduler module (Scheduler) in browser, realize reaching the effect that a plurality of tasks are downloaded with a task.So not only can reach asynchronous concurrent effect, also convenient the transplanting and debugging reduced the system overhead that multitask brings.
Further specify method of the present invention below in conjunction with specific embodiments and the drawings, these method concrete steps comprise as shown in Figure 3:
Step 1: area dividing mode, dispatching point that refresh cycle, picture are set.
With inquiry of the domain name, wait for set up TCP and connect, etc. HTTP request to be sent, wait for Data Receiving, be made as dispatching point, and be stored in the scheduler module.At dispatching point, each download channel runs into when blocking, still take the system resource waste that CPU causes for fear of the download channel obstruction, the download channel of blocking can send dispatch request to scheduler module, after scheduler module receives dispatch request, deprive the CPU that the download channel of sending dispatch request takies, use and CPU switched to the download channel of not blocking.Like this, CPU has obtained more rational use, has just avoided download channel to block and has waited for the time-delay stack that brings.
For refreshing of picture, technical scheme of the present invention has proposed the scheme that refreshes according to the zone, for dissimilar pictures, needs according to the user are divided into several regions with picture, as 3 * 3 zones, each zone is as the unit that refreshes, if during a not enough complete area, then refresh, reduce refreshing frequency according to actual line number.Simultaneously, set the refresh cycle, the refresh cycle is according to picture format, user's request, settings such as system architecture, add up the refresh cycle by timer, guarantee that the refresh cycle arrives each time, can finish the explanation of part picture, when the refresh cycle arrives, just trigger refresh activity, otherwise wait for.Like this, just avoid frequent explanation, refreshed the screen shake that brings.
Step 2: each download channel is rotated download pictures when dispatching point blocks, and the opening timing device.
Browser identifies picture tag, parses the URL of picture according to picture tag, and the download of picture is finished by a plurality of passages, and specifically as shown in Figure 3, download channel 1 and download channel 2 are managed by scheduler module.
Trigger download channel 1 and download channel 2 beginning download pictures, block at dispatching point when downloading passage 1 or download channel 2, this download channel is sent dispatch request to scheduler module, and the field data of preservation download channel; Scheduler module is suspended the download of this download channel, dispatch request is sent to transmit monitor module, and Fig. 3 is not shown.
For example: download channel 1 is blocked at the inquiry of the domain name dispatching point, then sends dispatch request to scheduler module, initiatively abdicates CPU; Simultaneously, download channel 1 is preserved field data, and this field data comprises: the pointer of the URL of photo current correspondence, the storage address of private data, next dispatching point etc.
Monitor module each incident to finding, all whether inquiry has download channel that should incident, when the incident of recovering download channel 1 takes place, monitors module this event information is sent to scheduler module.
Scheduler module switches to download channel 1 with CPU after receiving the event information of the recovery download channel 1 of monitoring the module transmission, and download channel 1 continues to carry out downloading task from the position of blocking preceding inquiry of the domain name according to the field data of preserving.
Download channel 2 is blocked when waiting HTTP to be sent to ask, and switches with said process similar.
After receiving data in download channel 1 or the download channel 2, just leave in the buffer zone of browser, and send the request of explanation to explanation module.Send when explaining request the opening timing device.
Step 3: explain the image data of downloading by picture/mb-type.
After explanation module receives the request of explanation, the data that receive in the buffer zone are made an explanation, the head of Study document at first, judge the file type of picture according to its mime type, decompress according to the packed data of corresponding file type again, the data after explaining are sent to display module picture file.
Step 4: the refresh cycle, clear screen showed the part picture of having explained when arriving.
Refresh cycle arrives, and timer sends idsplay order to display module, and display module judges whether the picture of explaining is complete area, if monoblock refreshes whole zone once; Otherwise, explained that several row just refresh several row, and write down the current progress that refreshes so that continue next time to refresh, avoided the flicker that too much refresh point is brought on the screen like this.
Step 5: repeated execution of steps 3 to 4, finish until the picture demonstration, close connection.
Data to receiving in the buffer zone constantly make an explanation, also periodically refresh picture, after finishing the picture demonstration, close connection.
Each pathway closure also may block when connecting, and adopts the principle of step 2, will close connection and also be set to dispatching point, closes each passage in turn, can reduce the time-delay that adds up of obstruction.
Adopt above method, the present invention also provides related device, as shown in Figure 5, this device comprises buffer zone, explanation module, display module, scheduler module, monitoring module, timer and at least one download channel, scheduler module, download channel, buffer zone, explanation module and display module are connected successively, monitor module and connect scheduler module, and timer connects display module, wherein
Scheduler module, according to the dispatch request of download channel, monitor the event information that module sends, the scheduling download channel is occupied or is discharged CPU;
Download channel is used for the URL download pictures according to picture, sends dispatch request to scheduler module, accepts the scheduling of scheduler module, sends the request of explanation to explanation module, and data download is sent buffer zone;
Buffer zone is used to store the download channel data downloaded;
Explanation module is used for according to explaining request data download being interpreted as pictorial information by picture/mb-type;
Display module is used for according to the picture after the idsplay order demonstration explanation;
Timer is used to add up the refresh cycle, and when each refresh cycle arrives, sends idsplay order to display module.
This device can overlapping a plurality of download channel network delay, user interactivity is good, simultaneously, periodic refreshing can reduce the screen shake, optimizes display effect.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (5)

1, a kind of method of optimizing user interactive performance of built-in browser is characterized in that, area dividing mode, the dispatching point of refresh cycle, picture is set, and this method also comprises:
A, each download channel are rotated download pictures when dispatching point blocks; After described download channel receives data, send the request of explanation opening timing device simultaneously to explanation module;
B, explain the image data downloaded by picture/mb-type;
C, refresh cycle, clear screen showed the part picture of having explained when arriving;
Wherein, the process of each download channel download pictures further comprises in the steps A:
A1, parse the URL of picture according to picture tag;
A2, triggering download channel begin download pictures, block at dispatching point when downloading passage, and this download channel is preserved self current field data, and sends dispatch request to scheduler module; Scheduler module is suspended the download of this download channel, dispatch request is sent to transmit monitor module;
A3, monitoring module send to scheduler module with event information after listening to the incident generation that recovers described download channel;
After A4, scheduler module receive the event information of monitoring the module transmission, recover the scene of respective downloaded passage, download channel continues to carry out downloading task according to the field data of preserving;
Wherein, step C further comprises:
C1, refresh cycle arrive, and timer sends idsplay order to display module;
C2, display module judge whether the picture that explanation module is explained is complete area, if refresh whole zone and show the picture that this is regional; Otherwise, only refresh and explain the part that finishes;
C3, the current progress that refreshes of record.
2, the method for optimization user interactive performance of built-in browser according to claim 1 is characterized in that, this method also comprises repeated execution of steps B to C, shows until picture and finishes, and closes connection.
3, the method for optimization user interactive performance of built-in browser according to claim 1 is characterized in that, described field data includes but not limited to: the pointer of the URL of photo current correspondence, the storage address of private data, next dispatching point.
4, the method for optimization user interactive performance of built-in browser according to claim 1, it is characterized in that, described dispatching point is inquiry of the domain name, wait for set up TCP and connect, etc. HTTP request to be sent, wait for Data Receiving, close one or more in the connection.
5, a kind of device of optimizing user interactive performance of built-in browser, comprise buffer zone, explanation module and display module, it is characterized in that, this device also comprises scheduler module, monitors module and at least one download channel, scheduler module, download channel, buffer zone, explanation module and display module are connected successively, monitor module and connect scheduler module, timer connects display module; Wherein,
Scheduler module, according to the dispatch request of download channel, monitor the event information that module sends, the scheduling download channel is occupied or is discharged CPU;
Download channel is used for the URL download pictures according to picture, sends dispatch request to scheduler module, accepts the scheduling of scheduler module, sends the request of explanation to explanation module, and data download is sent to buffer zone;
Buffer zone is used to store the download channel data downloaded;
Explanation module is used for according to explaining request data download being interpreted as pictorial information by picture/mb-type;
Display module is used for according to the picture after the idsplay order demonstration explanation;
Timer is used to add up the refresh cycle, and when each refresh cycle arrives, sends idsplay order to display module.
CN200810055981A 2008-01-03 2008-01-03 Method and device for optimizing user interactive performance of built-in browser Expired - Fee Related CN100583100C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810055981A CN100583100C (en) 2008-01-03 2008-01-03 Method and device for optimizing user interactive performance of built-in browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810055981A CN100583100C (en) 2008-01-03 2008-01-03 Method and device for optimizing user interactive performance of built-in browser

Publications (2)

Publication Number Publication Date
CN101196934A CN101196934A (en) 2008-06-11
CN100583100C true CN100583100C (en) 2010-01-20

Family

ID=39547346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810055981A Expired - Fee Related CN100583100C (en) 2008-01-03 2008-01-03 Method and device for optimizing user interactive performance of built-in browser

Country Status (1)

Country Link
CN (1) CN100583100C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609471B (en) * 2009-07-24 2011-05-11 中兴通讯股份有限公司 Embedded webpage analytic method and web browser
CN102411496A (en) * 2010-09-21 2012-04-11 宏碁股份有限公司 Window-refreshing control method and system
CN102591877A (en) * 2011-01-14 2012-07-18 深圳市同洲电子股份有限公司 Webpage resource request method for embedded browser and browsing device
CN103685387B (en) * 2012-09-12 2017-05-03 中国移动通信集团公司 Method for scheduling HTTP (hyper text transport protocol) request and browser device
US9239878B2 (en) * 2012-12-19 2016-01-19 Amazon Technologies, Inc. Interactivity analyses of web resources based on reload events
CN105955777A (en) * 2016-05-03 2016-09-21 网易(杭州)网络有限公司 User interface refreshing method and device

Also Published As

Publication number Publication date
CN101196934A (en) 2008-06-11

Similar Documents

Publication Publication Date Title
CN100583100C (en) Method and device for optimizing user interactive performance of built-in browser
JP3938599B2 (en) Multiple network protocol encoder / decoder and data processor
US20080177872A1 (en) Managing aggregation and sending of communications
US6016520A (en) Method of viewing at a client viewing station a multiple media title stored at a server and containing a plurality of topics utilizing anticipatory caching
US10296653B2 (en) Systems and methods for accelerating web page loading
US20110007679A1 (en) Mobile device and power saving method thereof
US9774651B2 (en) Method and apparatus for rapid data distribution
CN101179435B (en) Method of active push network management event and network management system
CN111385269B (en) Data transmission method and device
CN202841192U (en) High-speed reliable one-way transmission system supporting wide area network
CN103746938A (en) Method and device for transmitting data packet
CN102394880A (en) Method and device for processing jump response in content delivery network
CN102611643A (en) Method and system for handling emails of mobile terminal
CN100589439C (en) Method for raising handling efficiency of message server
AU719855B2 (en) Decoding system for motion picture data
CN103856558A (en) Data processing method and device for terminal application
CN103916906A (en) Method, device and system for distributing and processing user data messages
CN113992609B (en) Method and system for processing multilink service data disorder
CN106028373B (en) Mobile Internet data exchange system and method based on cloud service data characteristics
US20050120351A1 (en) System and method for a synchronized shared buffer architecture for multimedia players
FI124082B (en) Server, method of using the server and system
CN103095646B (en) A kind of method of reseptance of network data
JP2005100244A (en) Method for acquiring data and browser program
CN105357219B (en) Video window management method and system, client and server-side and splicer
CN115129189A (en) Method, system, equipment and storage medium for synchronizing end-to-end page operations

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100120

Termination date: 20170103