CN108932240B - Method, device, equipment and storage medium for accelerating cursor movement in network view - Google Patents

Method, device, equipment and storage medium for accelerating cursor movement in network view Download PDF

Info

Publication number
CN108932240B
CN108932240B CN201710372550.XA CN201710372550A CN108932240B CN 108932240 B CN108932240 B CN 108932240B CN 201710372550 A CN201710372550 A CN 201710372550A CN 108932240 B CN108932240 B CN 108932240B
Authority
CN
China
Prior art keywords
network view
resource data
cursor
identification information
cursor movement
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
CN201710372550.XA
Other languages
Chinese (zh)
Other versions
CN108932240A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710372550.XA priority Critical patent/CN108932240B/en
Publication of CN108932240A publication Critical patent/CN108932240A/en
Application granted granted Critical
Publication of CN108932240B publication Critical patent/CN108932240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method, a device and equipment for accelerating cursor movement in a network view. The method can comprise the following steps: and moving the cursor to a new position, and judging the target position of the possible movement of the cursor at the next moment. And generating resource data cache release information according to the target position which can be moved. And releasing the currently cached resource data based on the resource data cache release information. The method, the device and the equipment for accelerating the cursor movement in the network view disclosed by the embodiment of the invention can accelerate the cursor movement in the network view.

Description

Method, device, equipment and storage medium for accelerating cursor movement in network view
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a method, a device, equipment and a storage medium for accelerating cursor movement in a network view.
Background
The smart terminal-based processing system native browser engine kernel, for example, in the android4.4 native webkit kernel, some hypertext markup language scripts (e.g., HTML5) are designed to load the address (URL) and resource data of a new standard resource on the internet when the cursor is moved to a new location. This operation causes a certain time consumption, which is a phenomenon that the cursor moving speed is slow in the network view and the user waiting time is long.
In the prior art, the cursor moving speed is generally increased by increasing the decoding speed of resources, for example, the waiting time of a user is reduced by increasing the soft decoding speed of picture resources, but soft decoding is basically optimized based on a native skea library, and the development places are few; the waiting time of a user is also reduced by improving the hard decoding speed of picture resources, but the hard decoding has requirements on hardware, and once the hardware specification is determined, the hardware specification cannot be changed. In addition, the cursor moving speed can be increased by increasing the downloading speed of the resources, but the increase of the downloading speed is generally directed at the target server, the resource downloading not only depends on the target server, but also depends on environmental interference such as real-time network speed and the like, and the applicability is limited.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for accelerating cursor movement in a network view, which can simply and efficiently accelerate the cursor movement in the network view.
In a first aspect, a method for accelerating cursor movement in a network view is provided, which may include:
detecting the cursor moving from a first position to a second position in the network view, wherein each position corresponds to one identification information, and each identification information is associated with at least one resource data;
releasing cached resource data associated with identification information corresponding to the position displayed in the network view based on a resource data cache release threshold;
and detecting that the cursor moves from the second position to the third position, and caching uncached resource data associated with the identification information corresponding to the position displayed in the current network view.
In a first possible implementation manner, the resource data cache release threshold is a preset threshold.
In a first possible implementation manner, by using a preset resource data cache release threshold, the method for accelerating cursor movement in the network view may release cached resource data associated with identification information corresponding to a position displayed in the network view based on the preset threshold, so that resource data that needs to be cached after the cursor is detected to move from the second position to the third position is reduced, and cursor movement in the network view is accelerated.
With reference to the foregoing possible implementation manner, in a second possible implementation manner, after the detecting that the cursor moves from the first position to the second position in the network view, the method may further include:
judging the candidate target position of the cursor in the network view at the next moment;
and generating a resource data cache release threshold value having a direct proportional relation with the number of the candidate target positions according to the number of the candidate target positions.
In combination with the above possible implementation manners, in a second possible implementation manner, the resource data cache release threshold is obtained by judging a candidate target position of the cursor in the network view at the next time, and cached resource data associated with the identification information corresponding to the position displayed in the network view is released based on a preset threshold, so that resource data that needs to be cached after the cursor is detected to move from the second position to the third position is reduced, and the movement of the cursor in the network view is accelerated.
With reference to the foregoing possible implementation manners, in a third possible implementation manner, the releasing cached resource data associated with identification information corresponding to a position displayed in a network view based on a resource data cache release threshold may include:
and releasing the cached resource data until the number of the positions corresponding to the identification information associated with the remaining resource data is less than or equal to the resource data cache release threshold.
In combination with the above possible implementation manners, in a third possible implementation manner, the cached resource data is released until the number of the positions corresponding to the identification information associated with the remaining resource data is less than or equal to the resource data cache release threshold, so that the resource data that needs to be cached after the cursor is detected to move from the second position to the third position is reduced, and the cursor movement in the network view is accelerated.
With reference to the foregoing possible implementation manners, in a fourth possible implementation manner, the identification information corresponding to the position displayed in the current network view may be sequentially recorded in an identification list, and the method for accelerating the movement of the cursor in the network view may further include:
releasing cached resource data associated with identification information corresponding to a position displayed in a current network view based on a resource data cache release threshold, including:
and releasing the cached resource data associated with the identification information corresponding to the position displayed in the network view according to the sequence of the identification list.
With reference to the foregoing possible implementation manners, in a fourth possible implementation manner, cached resource data associated with identification information corresponding to a position displayed in the network view is released according to the sequence of the identification list, so that resource data that needs to be cached after the cursor is detected to move from the second position to the third position is reduced, and cursor movement in the network view is accelerated.
With reference to the foregoing possible implementation manners, in a fifth possible implementation manner, the method for accelerating cursor movement in a network view may further include:
and adjusting the judgment condition of the candidate target position according to the layout of the network view, wherein the judgment condition is used for selecting the candidate target position of the current position of the cursor.
With reference to the foregoing possible implementation manners, in a fifth possible implementation manner, the method for accelerating cursor movement in a web view can be applied to layouts of multiple web views by adjusting a determination condition of a candidate target position according to a layout of a web view.
In a second aspect, an apparatus for accelerating cursor movement in a network view is provided, which may include: the device comprises a judging unit, a releasing unit and a caching unit.
The determining unit may be configured to detect that a cursor moves from a first position to a second position in the network view, where each position corresponds to an identification information, and each identification information is associated with at least one resource data.
The releasing unit may be configured to release the cached resource data associated with the identification information corresponding to the position displayed in the network view based on the resource data cache release threshold.
The cache unit may be configured to detect that the cursor moves from the second location to the third location, and cache uncached resource data associated with the identification information corresponding to the location displayed in the current network view.
In a first possible implementation manner, the resource data cache release threshold is a preset threshold.
In a first possible implementation manner, by using a preset resource data cache release threshold, the method for accelerating cursor movement in the network view may release cached resource data associated with identification information corresponding to a position displayed in the network view based on the preset threshold, so that resource data that needs to be cached after the cursor is detected to move from the second position to the third position is reduced, and cursor movement in the network view is accelerated.
With reference to the foregoing possible implementation manners, in a second possible implementation manner, the apparatus for accelerating cursor movement in a network view may further include a threshold setting unit, configured to:
judging the candidate target position of the cursor in the network view at the next moment;
and generating a resource data cache release threshold value having a direct proportional relation with the number of the candidate target positions according to the number of the candidate target positions.
In combination with the above possible implementation manners, in a second possible implementation manner, the resource data cache release threshold is obtained by judging a candidate target position of the cursor in the network view at the next time, and cached resource data associated with the identification information corresponding to the position displayed in the network view is released based on a preset threshold, so that resource data that needs to be cached after the cursor is detected to move from the second position to the third position is reduced, and the movement of the cursor in the network view is accelerated.
With reference to the foregoing possible implementation manners, in a third possible implementation manner, the releasing unit may be further configured to:
and releasing the cached resource data until the number of the positions corresponding to the identification information associated with the remaining resource data is less than or equal to the resource data cache release threshold.
In combination with the above possible implementation manners, in a third possible implementation manner, the cached resource data is released until the number of the positions corresponding to the identification information associated with the remaining resource data is less than or equal to the resource data cache release threshold, so that the resource data that needs to be cached after the cursor is detected to move from the second position to the third position is reduced, and the cursor movement in the network view is accelerated.
With reference to the foregoing possible implementation manners, in a fourth possible implementation manner, the identification information corresponding to the position displayed in the current network view may be sequentially recorded in an identification list, and the releasing unit may be further configured to: and releasing the cached resource data associated with the identification information corresponding to the position displayed in the network view according to the sequence of the identification list.
With reference to the foregoing possible implementation manners, in a fourth possible implementation manner, cached resource data associated with identification information corresponding to a position displayed in the network view is released according to the sequence of the identification list, so that resource data that needs to be cached after the cursor is detected to move from the second position to the third position is reduced, and cursor movement in the network view is accelerated.
With reference to the foregoing possible implementation manners, in a fifth possible implementation manner, the apparatus for accelerating cursor movement in a network view may further include an adjusting unit, which may be configured to:
and adjusting the judgment condition of the candidate target position according to the layout of the network view, wherein the judgment condition is used for selecting the candidate target position of the current position of the cursor.
With reference to the foregoing possible implementation manners, in a fifth possible implementation manner, the apparatus for accelerating cursor movement in a web view can be adapted to layouts of multiple web views by adjusting a determination condition of a candidate target position according to a layout of a web view.
In a third aspect, an apparatus for expediting cursor movement in a network view is provided and may include a memory and a processor. The memory may be configured to store executable program code. The processor may be configured to read executable program code stored in the memory to perform the above-described method for accelerating cursor movement in a network view.
In a fourth aspect, a computer-readable storage medium is provided that may include instructions that, when executed on a computer, may cause the computer to perform the method for accelerating cursor movement in a network view described above.
A fifth aspect provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the above-described method of accelerating cursor movement in a network view.
A sixth aspect provides a computer program which, when run on a computer, causes the computer to perform the above method of accelerating cursor movement in a network view.
According to the method, the device, the equipment and the storage medium for accelerating the cursor movement in the network view, before the resource data cache is released, the cursor is detected to move from the first position to the second position in the network view, the cached resource data associated with the identification information corresponding to the position displayed in the network view is released according to a resource data cache release threshold, and after the cursor is detected to move from the second position to the third position, the uncached resource data associated with the identification information corresponding to the position displayed in the current network view is cached. The resource data which needs to be cached again after the cursor moves at the next moment can be prevented from being released in the process of caching and releasing the resource data, the processes of downloading and analyzing the data of some resources are omitted, and the cursor moving in the network view is accelerated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method of expediting cursor movement in a network view in accordance with one embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram of a method of expediting cursor movement in a network view in accordance with another embodiment of the present invention;
FIG. 3 is a schematic timing diagram of a method of expediting cursor movement in a network view according to one embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram of a method of expediting cursor movement in a network view in accordance with yet another embodiment of the present invention;
FIG. 5 is an exemplary diagram of an application scenario of a method for accelerating cursor movement in a network view according to an embodiment of the present invention;
FIG. 6 is an exemplary diagram of an application scenario of a method for accelerating cursor movement in a network view according to another embodiment of the present invention;
FIG. 7 is an exemplary diagram of an application scenario of a method for accelerating cursor movement in a network view according to yet another embodiment of the present invention;
FIG. 8 is a block diagram of an exemplary architecture of an apparatus for expediting cursor movement in a network view according to one embodiment of the present invention;
FIG. 9 is a block diagram of an apparatus for expediting cursor movement in a network view according to another embodiment of the present invention;
FIG. 10 is a block diagram of an apparatus for accelerating cursor movement in a network view according to another embodiment of the present invention;
fig. 11 is a block diagram of an exemplary architecture of an apparatus for expediting cursor movement in a network view according to one embodiment of the invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. Embodiments will be described in detail below with reference to the accompanying drawings.
In some examples, in a web view, for example, a web page displayed by a display unit connected to an intelligent terminal, the movement of a cursor may go through the following stages:
the resource data is looked up in a Cache memory (Cache) to see if the resource data has been resolved locally. The resource data may be resource data such as a picture, a video, and an address corresponding to a position where a cursor is movable in the network view.
And downloading the required resource data according to the content in the webpage.
And analyzing the downloaded resource data through software and hardware.
And re-laying out and displaying the analyzed downloaded resource data so as to update the content displayed in the webpage.
For example, when the cursor moves from a first position to a second position, the loadURL () interface to the browser engine webkit kernel may be called, and the flow to Naviget () - > cache _ clear () may be entered. The parsed data will be completely cleared in the cache _ clear (), so that the downloaded and parsed resource data will be completely cleared every time the cursor is moved, and the cursor will go through the above four stages every time the cursor is moved.
In the above example, accelerating the cursor movement in the network view is a complete process of releasing web page resources, which can well avoid the problems of Out of Memory (OOM) caused by too large Memory, excessive resource occupation, and the like, but the cursor system will completely empty the analyzed data every time the cursor is moved, so that the cursor will go through the above four stages every time the cursor is moved, resulting in a certain time consumption.
Based on the above problems, some embodiments of the present invention provide a method for accelerating cursor movement in a network view, which can accelerate cursor movement in the network view simply and efficiently.
FIG. 1 is a schematic flow chart diagram of a method for expediting cursor movement in a network view in accordance with one embodiment of the present invention. As shown in fig. 1, the method may include: s110 to S130.
In S110, a cursor is detected to move from a first position to a second position in the network view, wherein each position corresponds to an identification information, and each identification information is associated with at least one resource data.
In S120, the cached resource data associated with the identification information corresponding to the position displayed in the network view may be released based on the resource data cache release threshold.
For example, when releasing the resource data of a location, the cached resource data is released through the address of the resource data associated with the identification information of the location.
In some illustrative examples, the network view may be a network view of a display in a mobile device or home network APP, which does not accumulate a large amount of content on a page display for user convenience, typically a page of content with a large number of pictures plus a small amount of text.
For example, each piece of identification information records a storage address of a picture, and when resource data of a position is released, the cached picture data is released through the identification information of the position.
In some examples, the identification information is a storage address of the associated resource data, and the identification information may also be information having an identification function associated with the storage address of the resource data.
In some examples, the resource data cache release threshold may be a preset threshold. In other examples, the resource data cache release threshold may also be set differently according to differences of the network views.
In S130, it is detected that the cursor moves from the second position to the third position, and the uncached resource data associated with the identification information corresponding to the position displayed in the current network view may be cached.
In some examples, since the resource data cached and resolved when the cursor is at the second position is reserved according to the resource data cache release threshold in S120, after detecting that the cursor moves from the second position to the third position, only the uncached resource data associated with the identification information corresponding to the position displayed in the current network view may be cached.
According to the method for accelerating the cursor movement in the network view provided by the embodiment of the invention, before the resource data cache is released, the cursor is detected to move from the first position to the second position in the network view, the cached resource data associated with the identification information corresponding to the position displayed in the network view is released according to a resource data cache release threshold, and after the cursor is detected to move from the second position to the third position, the uncached resource data associated with the identification information corresponding to the position displayed in the current network view is cached. The method can avoid releasing the resource data which needs to be cached again after the cursor moves at the next moment in the process of caching and releasing the resource data, saves the processes of downloading and analyzing the data of some resources, and can simply and efficiently accelerate the cursor movement in the network view. Fig. 2 is a schematic flowchart of a method for accelerating cursor movement in a network view according to another embodiment of the present invention, and as shown in fig. 2, after detecting that a cursor moves from a first position to a second position in the network view in S110, the method may further include: s210 and S220.
In S210, a candidate target position of the cursor in the network view at the next time is determined;
in S220, a resource data cache release threshold having a direct proportional relationship with the number of candidate target locations is generated according to the number of candidate target locations.
In some illustrative examples, in S210, a target position at which a possible movement of the cursor at the next time is determined as a candidate target position may be determined according to a display form of the network view. For example, the target position of the possible movement of the cursor at the next time is a position in which the cursor is connected in four directions, i.e., up, down, left, and right, of the current position.
In some illustrative examples, a resource data cache release threshold having a direct proportional relationship to the number of candidate target locations is generated from the number of candidate target locations in S220. For example, the resource data cache release threshold may be increased when the number of candidate target locations increases and decreased when the number decreases.
In some illustrative examples, S120 may include:
and releasing the cached resource data until the number of the positions corresponding to the identification information associated with the remaining resource data is less than or equal to the resource data cache release threshold.
In some examples, S120 may include:
after the cached resource data associated with the identification information corresponding to the position displayed in the current network view is released, the number of the positions displayed in the current network view is decreased;
comparing the number of positions displayed in the decreased remaining current network view with a resource data cache release threshold;
and stopping releasing the resource data cached at present when the number of the positions displayed in the decreased residual current network view is less than or equal to the resource data cache release threshold.
In some illustrative examples, the identification information corresponding to the position displayed in the current network view may be sequentially recorded in an identification list, and S120 may include:
and releasing the cached resource data associated with the identification information corresponding to the position displayed in the network view according to the sequence of the identification list.
In some illustrative examples, a pointer linked list may be present on the webkit kernel to point to storage addresses of individual pictures, and each storage address may correspond to one piece of identification information. Then S120, the pictures at the positions displayed in the network view may be released according to the order of the pointer linked list.
For example, after releasing cached resource data associated with identification information corresponding to a position displayed in a current network view in sequence according to a pointer linked list, the number of the positions displayed in the current network view is decreased;
comparing the number of positions displayed in the decreased remaining current network view with a resource data cache release threshold;
and stopping releasing the resource data cached at present when the number of the positions displayed in the decreased residual current network view is less than or equal to the resource data cache release threshold.
In some illustrative examples, it may appear on the webkit kernel to point to individual pictures with a linked list of pointers. And the address of the picture at the next moment position from the current cursor position is generally recorded at the front end of the linked list in a linear mode, the cached pictures can be deleted from the tail end of the linked list one by one according to the pointer linked list, and the address data of the remaining recorded pictures in the linked list is compared with the obtained resource data cache release threshold value until the number of the possible moving target positions recorded in the linked list is smaller than or equal to the resource data cache release threshold value.
FIG. 3 is a schematic timing diagram of a method for expediting cursor movement in a network view according to one embodiment of the present invention. As shown in fig. 2, the cursor movement accelerating method in the network view takes running HTML5 script in the web kit kernel of the browser engine as an example:
at a certain moment, when a trigger cursor moves, a system loadURL () interface downloads and analyzes resource data, and stores the analyzed resource data into a webkit Cache for caching.
At the next moment, when the cursor is triggered to move, the system releases the resource cache which does not need to be reserved through the resource cache release threshold by adopting the method shown in fig. 1, and the resource data cache which needs to be reserved is remained.
When requesting the resource again, the resource data needed to be reserved can be returned, and other resource data which are not cached can be downloaded.
FIG. 4 is a schematic flow chart diagram of a method for accelerating cursor movement in a network view according to yet another embodiment of the present invention. As shown in fig. 4, the method for accelerating cursor movement in the network view may further include S410, adjusting a determination condition of the candidate target position according to the layout of the network view, where the determination condition is used to select the candidate target position of the current position of the cursor.
Fig. 5 is an exemplary diagram of an application scenario of a method for accelerating cursor movement in a network view according to an embodiment of the present invention. As shown in fig. 5, the network view 500 includes positions of 12 picture resources, and in this scene, it is assumed that the movable position of the cursor at the next time is four positions, i.e., the up, down, left, and right positions of the current position.
For example, when the cursor is moved to the position 301, the movable target positions of the cursor at the next time can be judged as the position 302, the position 303, the position 304, and the position 305.
In some illustrative examples, the resource data cache release threshold may be determined by obtaining a number of candidate target locations of 4 from four locations, location 302, location 303, location 304, and location 305.
Fig. 6 is an exemplary diagram of an application scenario of a method for accelerating cursor movement in a network view according to another embodiment of the present invention. The network view 600 includes the positions of 4 picture resources, and in this scene, it is assumed that the movable position of the cursor at the next moment is two positions, i.e., the left and right positions of the current position.
When the cursor is moved to the position 601, the movable target positions of the cursor at the next time can be judged as the position 602 and the position 603.
In some illustrative examples, the original resource data cache release information may be adjusted according to location 602 and location 603. For example, as shown in fig. 5, the network view at the previous time may adjust the resource data cache release threshold corresponding to the original four candidate target locations to the resource data cache release threshold corresponding to the two candidate target locations.
Fig. 7 is an exemplary diagram of an application scenario of a method for accelerating cursor movement in a network view according to another embodiment of the present invention. The network view 700 includes positions of 12 picture resources, and in the scene, it is assumed that possible moving positions of the cursor at the next moment are four positions corresponding to four corners of the current square position.
For example, when the cursor is moved to the position 701, the movable target positions of the cursor at the next time can be determined to be the position 702, the position 703, the position 704, and the position 705.
In some illustrative examples, the number of candidate target locations may be 4 according to four locations, i.e., location 702, location 703, location 704, and location 705, and the resource data cache release threshold may be determined.
In some illustrative examples, the original resource data cache release information may be adjusted according to location 702, location 703, location 704, and location 705. For example, as shown in fig. 6, the network view at the previous time may adjust the resource data cache release threshold corresponding to the original two candidate target locations to the resource data cache release threshold corresponding to the four candidate target locations.
The method for accelerating cursor movement in a network view according to an embodiment of the present invention is described in detail above with reference to fig. 1 to 7, and the apparatus and device for accelerating cursor movement in a network view according to an embodiment of the present invention are described in detail below with reference to fig. 8 to 10.
Fig. 8 is a schematic block diagram of an apparatus for accelerating cursor movement in a network view according to an embodiment of the present invention. As shown in fig. 8, the apparatus 800 for accelerating cursor movement in a network view may include: a judging unit 810, a releasing unit 820 and a buffering unit 830.
The determining unit 810 may be configured to detect that a cursor moves from a first position to a second position in a network view, where each position corresponds to an identification information, and each identification information is associated with at least one resource data.
The releasing unit 820 may be configured to release the cached resource data associated with the identification information corresponding to the position displayed in the network view based on the resource data cache release threshold.
The caching unit 830 may be configured to detect that the cursor moves from the second position to the third position, and cache the uncached resource data associated with the identification information corresponding to the position displayed in the current network view.
The apparatus 800 for accelerating cursor movement in a network view according to an embodiment of the present invention may correspond to an execution main body in the method for accelerating cursor movement in a network view according to an embodiment of the present invention, and functions of each unit in the apparatus 800 for accelerating cursor movement in a network view are respectively for implementing corresponding processes of each method in fig. 1, and are not described herein again for brevity.
Therefore, according to the apparatus for accelerating cursor movement in a network view provided by the embodiment of the present invention, before the resource data cache is released, by detecting that the cursor moves from the first location to the second location in the network view, and releasing cached resource data associated with the identification information corresponding to the location displayed in the network view according to a resource data cache release threshold, after detecting that the cursor moves from the second location to the third location, the uncached resource data associated with the identification information corresponding to the location displayed in the current network view is cached. The method can avoid releasing the resource data which needs to be cached again after the cursor moves at the next moment in the process of caching and releasing the resource data, saves the processes of downloading and analyzing the data of some resources, and can simply and efficiently accelerate the cursor movement in the network view.
According to some embodiments, the resource data cache release threshold is a preset threshold.
Fig. 9 is a schematic block diagram of an apparatus for accelerating cursor movement in a network view according to another embodiment of the present invention. As shown in fig. 9, the apparatus 900 for accelerating cursor movement in a network view may include: a judging unit 910, a releasing unit 920, a buffering unit 930, and a threshold setting unit 940.
The determining unit 910, the releasing unit 920, and the buffering unit 930 have similar functions to the determining unit 810, the releasing unit 820, and the buffering unit 830, and for brevity, are not described herein again.
The threshold setting unit 940 may be configured to:
judging the candidate target position of the cursor in the network view at the next moment;
and generating a resource data cache release threshold value having a direct proportional relation with the number of the candidate target positions according to the number of the candidate target positions.
In some examples, the release unit may be further configured to:
and releasing the cached resource data until the number of the positions corresponding to the identification information associated with the remaining resource data is less than or equal to the resource data cache release threshold.
In some examples, the identification information corresponding to the position displayed in the current network view may be sequentially recorded in an identification list, and the releasing unit may be further configured to: and releasing the cached resource data associated with the identification information corresponding to the position displayed in the network view according to the sequence of the identification list.
Fig. 10 is a schematic block diagram of an apparatus for accelerating cursor movement in a network view according to another embodiment of the present invention. As shown in fig. 10, an apparatus 1000 for accelerating cursor movement in a network view may comprise: a judging unit 1010, a releasing unit 1020, a buffering unit 1030, a threshold setting unit 1040, and an adjusting unit 1050.
The determining unit 1010, the releasing unit 1020, the buffering unit 1030, and the threshold setting unit 1040 have similar functions to the determining unit 910, the releasing unit 920, the buffering unit 930, and the threshold setting unit 940, and are not described herein again for brevity.
An adjusting unit 1050, which may be configured to:
and adjusting the judgment condition of the candidate target position according to the layout of the network view, wherein the judgment condition is used for selecting the candidate target position of the current position of the cursor.
Fig. 11 is a block diagram of an exemplary architecture of an apparatus for expediting cursor movement in a network view according to one embodiment of the invention. At least a portion of the method for accelerating cursor movement in a network view and the apparatus for accelerating cursor movement in a network view described above in connection with fig. 11 may be implemented by a computer device 1100. The device 1100 may include a processor 1103 and a memory 1104.
The memory 1104 may be used to store executable program code.
The processor 1103 may be configured to read executable program code stored in the memory 1104 to perform the above-described method of accelerating cursor movement in a network view.
Therefore, according to the apparatus for accelerating cursor movement in a network view provided by the embodiment of the present invention, before the resource data cache is released, by detecting that the cursor moves from the first location to the second location in the network view, and releasing cached resource data associated with the identification information corresponding to the location displayed in the network view according to a resource data cache release threshold, after detecting that the cursor moves from the second location to the third location, the uncached resource data associated with the identification information corresponding to the location displayed in the current network view is cached. The method can avoid releasing the resource data which needs to be cached again after the cursor moves at the next moment in the process of caching and releasing the resource data, saves the processes of downloading and analyzing the data of some resources, and can simply and efficiently accelerate the cursor movement in the network view. The method can be separated from the inherent skea library, is convenient for further optimization, and has the advantage of being not easily interfered by external environments such as network speed and the like.
In some illustrative examples, device 1100 that expedites cursor movement in a network view may also include an input device 1101, an input port 1102, an output port 1105, and an output device 1106. The input port 1102, the processor 1103, the memory 1104, and the output port 1105 are connected to each other via a bus 1110, and the input device 1101 and the output device 1106 are connected to the bus 1110 via the input port 1102 and the output port 1105, respectively, and further connected to other components of the device 1100.
In some examples, the output interfaces and input interfaces herein may also be represented as I/O interfaces. Specifically, the input device 1101 receives input information from the outside and transmits the input information to the processor 1103 through the input port 1102. For example, the input information is information of cursor movement.
In some examples, the processor 1103 processes the input information to generate output information based on computer-executable program code or instructions stored in the memory 1104, e.g., the processor 1104 performs the steps of: detecting the cursor moving from a first position to a second position in the network view, wherein each position corresponds to one identification information, and each identification information is associated with at least one resource data; releasing cached resource data associated with identification information corresponding to the position displayed in the network view based on a resource data cache release threshold; and detecting that the cursor moves from the second position to the third position, and caching uncached resource data associated with the identification information corresponding to the position displayed in the current network view. So that the required resource data is ready as output information before the cursor is moved at the next time. The output information is stored temporarily or permanently in the memory 1104 and then transferred to the output device 1106 via the output port 1105 as needed. The output device 1106 outputs output information to the outside of the device 1100.
In some examples, a computer-readable storage medium is provided that may include instructions that, when executed on a computer, may cause the computer to perform the above-described method of accelerating cursor movement in a network view.
In some examples, a computer program product containing instructions that, when executed on a computer, cause the computer to perform the above-described method of accelerating cursor movement in a network view is provided.
In some examples, a computer program is provided which, when run on a computer, causes the computer to perform the above-described method of accelerating cursor movement in a network view.
In the above examples, the implementation may be in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

Claims (14)

1. A method for accelerating cursor movement in a web view, the method comprising:
detecting the cursor moving from a first position to a second position in the network view, wherein each position corresponds to one identification information, and each identification information is associated with at least one resource data;
releasing cached partial resource data associated with the identification information corresponding to the position displayed in the network view based on a resource data cache release threshold;
and detecting that the cursor moves from the second position to a third position, and caching uncached resource data associated with the identification information corresponding to the position displayed in the current network view.
2. The method of accelerating cursor movement in a network view of claim 1, wherein the resource data cache release threshold is a preset threshold.
3. The method of accelerating cursor movement in a web view of claim 1, wherein after detecting the cursor movement from a first position to a second position in the web view, further comprising:
judging the candidate target position of the cursor in the network view at the next moment;
and generating the resource data cache release threshold value having a direct proportional relation with the number of the candidate target positions according to the number of the candidate target positions.
4. The method for accelerating cursor movement in a network view according to any one of claims 1 to 3, wherein the releasing the cached partial resource data associated with the identification information corresponding to the position displayed in the network view based on the resource data cache release threshold value includes:
and releasing the cached part of the resource data until the number of the positions corresponding to the identification information associated with the remaining resource data is less than or equal to the resource data cache release threshold.
5. The method for accelerating cursor movement in network view according to claim 4, wherein the identification information corresponding to the position displayed in the current network view is sequentially recorded in an identification list,
the releasing of the cached part of the resource data associated with the identification information corresponding to the position displayed in the network view based on the resource data cache release threshold value includes:
and releasing the cached part of resource data associated with the identification information corresponding to the position displayed in the network view according to the sequence of the identification list.
6. The method of accelerating cursor movement in a network view of claim 3 or 5, further comprising:
and adjusting a judgment condition of a candidate target position according to the layout of the network view, wherein the judgment condition is used for selecting the candidate target position of the current position of the cursor.
7. An apparatus for expediting cursor movement in a network view, the apparatus comprising:
the system comprises a judging unit, a judging unit and a display unit, wherein the judging unit is used for detecting that a cursor moves from a first position to a second position in a network view, each position corresponds to identification information, and each identification information is associated with at least one resource data;
the release unit is used for releasing the cached part of resource data associated with the identification information corresponding to the position displayed in the network view based on the resource data cache release threshold value;
and the cache unit is used for detecting that the cursor moves from the second position to the third position and caching the uncached resource data associated with the identification information corresponding to the position displayed in the current network view.
8. The apparatus for expediting cursor movement in a network view of claim 7, wherein the resource data cache release threshold is a predetermined threshold.
9. The apparatus for accelerating cursor movement in a network view according to claim 7, further comprising a threshold setting unit for:
judging the candidate target position of the cursor in the network view at the next moment;
and generating a resource data cache release threshold value having a direct proportional relation with the number of the candidate target positions according to the number of the candidate target positions.
10. The apparatus for accelerating cursor movement in a network view according to any one of claims 7 to 9, wherein the releasing unit is further configured to:
and releasing the cached part of the resource data until the number of the positions corresponding to the identification information associated with the remaining resource data is less than or equal to the resource data cache release threshold.
11. The apparatus for accelerating cursor movement in a network view according to claim 10, wherein the identification information corresponding to the position displayed in the current network view is sequentially recorded in an identification list, and the releasing unit is further configured to:
and releasing the cached part of resource data associated with the identification information corresponding to the position displayed in the network view according to the sequence of the identification list.
12. The apparatus for accelerating cursor movement in a network view according to claim 9 or 11, further comprising an adjusting unit for:
and adjusting a judgment condition of a candidate target position according to the layout of the network view, wherein the judgment condition is used for selecting the candidate target position of the current position of the cursor.
13. An apparatus for accelerating cursor movement in a network view, comprising a memory and a processor;
the memory is used for storing executable program codes;
the processor is configured to read executable program code stored in the memory to perform the method of accelerating cursor movement in a network view of any of claims 1 to 6.
14. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of accelerating cursor movement in a network view of any of claims 1 to 6.
CN201710372550.XA 2017-05-23 2017-05-23 Method, device, equipment and storage medium for accelerating cursor movement in network view Active CN108932240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710372550.XA CN108932240B (en) 2017-05-23 2017-05-23 Method, device, equipment and storage medium for accelerating cursor movement in network view

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710372550.XA CN108932240B (en) 2017-05-23 2017-05-23 Method, device, equipment and storage medium for accelerating cursor movement in network view

Publications (2)

Publication Number Publication Date
CN108932240A CN108932240A (en) 2018-12-04
CN108932240B true CN108932240B (en) 2020-11-17

Family

ID=64450324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710372550.XA Active CN108932240B (en) 2017-05-23 2017-05-23 Method, device, equipment and storage medium for accelerating cursor movement in network view

Country Status (1)

Country Link
CN (1) CN108932240B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356908B1 (en) * 1999-07-30 2002-03-12 International Business Machines Corporation Automatic web page thumbnail generation
CN1605079A (en) * 2001-11-07 2005-04-06 甲骨文公司 Methods and systems for preemptive and predictive page caching for improved site navigation
CN101460945A (en) * 2004-09-27 2009-06-17 Bt网络解决方案有限责任公司 Method and apparatus for enhanced browsing
CN105893446A (en) * 2015-02-18 2016-08-24 奥多比公司 Method for intelligent web reference preloading based on user behavior prediction
CN106503009A (en) * 2015-09-07 2017-03-15 阿里巴巴集团控股有限公司 Show the transfer method and device of data in the page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356908B1 (en) * 1999-07-30 2002-03-12 International Business Machines Corporation Automatic web page thumbnail generation
CN1605079A (en) * 2001-11-07 2005-04-06 甲骨文公司 Methods and systems for preemptive and predictive page caching for improved site navigation
CN101460945A (en) * 2004-09-27 2009-06-17 Bt网络解决方案有限责任公司 Method and apparatus for enhanced browsing
CN105893446A (en) * 2015-02-18 2016-08-24 奥多比公司 Method for intelligent web reference preloading based on user behavior prediction
CN106503009A (en) * 2015-09-07 2017-03-15 阿里巴巴集团控股有限公司 Show the transfer method and device of data in the page

Also Published As

Publication number Publication date
CN108932240A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN109313661B (en) Web page acceleration for hosted web applications in native mobile applications
US10474693B2 (en) Resolving conflicts within saved state data
CN105378713B (en) Method and system for prerendering and prefetching content
CN111666497B (en) Application program loading method and device, electronic equipment and readable storage medium
CN109753617B (en) Page display method, equipment and storage medium
US20170329862A1 (en) Infinite Scrolling
CN111736850B (en) Image processing method, apparatus, server and medium
CN110825456B (en) Loading time calculation method, loading time calculation device, computer equipment and storage medium
CN109388317B (en) Picture loading method, terminal device and storage medium
US20140365861A1 (en) Prefetching binary data for use by a browser plugin
US8516041B1 (en) Pre-fetching asynchronously requested content
US20120260267A1 (en) Methods and Systems for Supporting a Rendering API Using a Runtime Environment
CN114741149B (en) Page switching method and device for single-page application, storage medium and electronic equipment
CN112507259A (en) Webpage loading method and device, electronic equipment and storage medium
CN104881452A (en) Resource locator sniffing method, device and system
CN108932240B (en) Method, device, equipment and storage medium for accelerating cursor movement in network view
CN109726346B (en) Page component processing method and device
CN108268298B (en) Desktop icon generation method and device, storage medium and electronic equipment
CN112395437A (en) 3D model loading method and device, electronic equipment and storage medium
US9223758B1 (en) Determining a language encoding data setting for a web page, and applications thereof
CN111427654A (en) Instruction processing method and device
CN111475748A (en) Picture display method and device
CN110990730B (en) Webpage operation method and device, electronic equipment and storage medium
CN111163138B (en) Method, device and server for reducing network load during game
CN112395521B (en) Page processing method, page processing device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant