WO2017107835A1 - 浏览器启动方法及装置 - Google Patents

浏览器启动方法及装置 Download PDF

Info

Publication number
WO2017107835A1
WO2017107835A1 PCT/CN2016/109996 CN2016109996W WO2017107835A1 WO 2017107835 A1 WO2017107835 A1 WO 2017107835A1 CN 2016109996 W CN2016109996 W CN 2016109996W WO 2017107835 A1 WO2017107835 A1 WO 2017107835A1
Authority
WO
WIPO (PCT)
Prior art keywords
browser
data
task data
initial
task
Prior art date
Application number
PCT/CN2016/109996
Other languages
English (en)
French (fr)
Inventor
杨德立
Original Assignee
北京奇虎科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京奇虎科技有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2017107835A1 publication Critical patent/WO2017107835A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present invention relates to the field of information technology, and in particular, to a browser starting method and apparatus.
  • a browser startup method including:
  • Deleting data in the task data that is not related to the initial startup of the browser
  • the task data after deleting data that is not related to the initial startup of the browser is run.
  • a browser activation apparatus comprising:
  • the obtaining unit is configured to acquire task data that the application layer needs to be initially started when the browser is initially started;
  • a deleting unit configured to not count the number of the task data that is not related to the initial startup of the browser Deleted
  • a running unit configured to: when the browser is initially started, run the task data after deleting data that is not related to the initial startup of the browser.
  • a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform the browser launch method described above.
  • a computer readable medium wherein the computer program described above is stored.
  • the browser startup method and device provided by the present invention firstly acquire task data that the application layer needs to be initially started when the browser is initially started, and then delete data in the task data that is irrelevant to the initial startup of the browser.
  • the task data After deleting data that is not related to the initial startup of the browser is run.
  • the present invention generally requires an initial startup task when the browser is initially started. In the data, filtering data that is not related to the initial startup of the browser can improve the speed at which the browser is started and the efficiency of browser startup.
  • FIG. 1 is a schematic flow chart of a browser startup method according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of another browser startup detection method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a browser starting device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another browser activation apparatus according to an embodiment of the present invention.
  • Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention
  • Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • the embodiment of the invention provides a web browser startup method. As shown in FIG. 1 , the method includes:
  • the application layer needs the task data that is initially started.
  • the initialization of the application layer is a precondition for the initial startup of each application, and the task data that needs to be initially started by the application layer may include the object initial operation task data, the data assignment task data, the service startup task data, and the like, which are not performed in the embodiment of the present invention. limited. Specifically, each task that is executed at the initial stage of the application layer application may be split to obtain various task data that the application layer needs to be initially started.
  • the data that is not related to the initial startup of the browser may specifically be task data that does not affect the initial startup of the browser, and may include data initial task data, object initial task data, and the like, and the data related to the initial startup of the browser is specific.
  • the task data of the assignment task data of the global Context, the asynchronous task data, and the like may be included in the initial startup and the time-consuming task data, which is not limited in the embodiment of the present invention.
  • the initial data task SystemInfo class is usually initialized, and the class includes initial task data and assignment task data related to device information such as device screen width, density, channel number, device unique identifier, and the like.
  • the entire initial process of the SystemInfo class takes a long time, and the task data in the SystemInfo class does not affect the initial startup of the browser, so the task data of the SystemInfo class in the Application is deleted.
  • the data in the SystemInfo is called for the first time. The initial time is taken, and the initial operation is not performed when the browser is initially started, so the initial startup speed of the browser can be increased.
  • the initial startup of the browser when the browser is initially started, by filtering the task data in the Application that is not related to the initial startup of the browser, the initial startup of the browser can be ensured, and the irrelevant task can be reduced.
  • the initial startup delay of the browser caused by the data can improve the speed of browser startup and the efficiency of browser startup.
  • the browser startup method provided by the present invention firstly acquires task data that the application layer needs to be initially started when the browser is initially started, and then deletes data in the task data that is not related to the initial startup of the browser.
  • the task data After deleting data that is not related to the initial startup of the browser is run.
  • the present invention generally requires an initial startup task when the browser is initially started. In the data, filtering data that is not related to the initial startup of the browser can improve the speed at which the browser is started and the efficiency of browser startup.
  • An embodiment of the present invention provides another browser startup method. As shown in FIG. 2, the method includes:
  • the application layer needs the task data that is initially started.
  • the initialization of the application layer is a precondition for the initial startup of each application, and the task data that needs to be initially started by the application layer may include the object initial operation task data, the data assignment task data, the service startup task data, and the like, which are not performed in the embodiment of the present invention. limited.
  • the preset correlation may be an impact on the initial startup of the browser, and the greater the impact of the task data on the initial startup of the browser, the higher the priority order of the task data.
  • the tasks that need to be initially started include data assignment task, service startup task, and asynchronous task.
  • the data assignment task and the service startup task have no effect on the initial startup of the browser
  • the asynchronous task is a prerequisite for the initial startup of the browser
  • the asynchronous task data is The priority is higher than the assignment task data and the service startup task data.
  • the deletion precision of the task data initially started by the application layer can be further improved, and the initial startup speed of the browser is improved. , to ensure the stability of the initial startup of the browser. For example, if the preset priority has an impact on the initial startup of the browser, the task data in the task data that has no effect on the initial startup of the browser is deleted. This reduces the amount of boot time spent on task data that has no effect on the initial startup of the browser.
  • the step 203 may include: deleting task data of the device information corresponding to the browser in the task data.
  • the task data of the device information may specifically include initial and assigned data of device information such as device screen width, density, channel number, and device unique identifier.
  • the method further includes: performing initial priority ordering on the data whose correlation is higher than the preset correlation.
  • the data whose correlation is higher than the preset correlation may not need to repeat the initial data when the browser is hot-started, and the initial operation task data such as the service that is not required to be started by the hot start, the global static data, and the like.
  • the hot start is the startup operation when the browser main process runs.
  • Performing the initial prioritization of the data whose correlation is higher than the preset correlation may specifically include: sorting the data whose correlation is higher than the preset correlation according to the order of importance of the tasks from high to low.
  • the step 204 may include: when the browser is initially started, running task data with a priority greater than a preset priority in the task data, and running the task data by using a preset asynchronous thread has a priority less than Or equal to the priority priority of the task data.
  • the task data whose priority is less than or equal to the preset priority may include an SD card available for determining task data, sharing task data, and uninstalling feedback monitoring task data.
  • the browser initial startup can be further improved by running the task data with lower priority through the preset asynchronous thread. Dynamic speed.
  • the SD card can be used to determine the task data, share the task data, and unload the feedback monitoring task data, and then perform the same encapsulation and postpone the execution by the preset asynchronous thread, thereby further improving the efficiency of the deferred execution, thereby further improving the browser.
  • Initial startup speed the speed of the task data.
  • the method may further include: when the data whose correlation is lower than the preset correlation is initially called, perform an initial operation and save the initial data. Therefore, while the initial startup speed of the browser is improved, the normal operation of the browser can be ensured, and by storing the initial data, the repeated initial operation of the data can be avoided, and the operating efficiency of the browser is further improved.
  • the preset correlation and the preset priority may be updated according to the service type information when the browser is initially started. Since the application layer corresponding to the different services needs different initial task data when the browser is initially started, the preset relevance and the preset priority are updated according to the service type information, and the browsing can be improved. When the initial startup speed is used, the error deletion of the task data is avoided, and the initial startup stability of the browser is ensured.
  • Another browser startup method provided by the present invention firstly obtains task data that the application layer needs to be initially started when the browser is initially started, and then deletes data in the task data that is not related to the initial startup of the browser.
  • the task data After deleting data that is not related to the initial startup of the browser is executed.
  • the present invention generally requires an initial startup task when the browser is initially started. In the data, filtering data that is not related to the initial startup of the browser can improve the speed at which the browser is started and the efficiency of browser startup.
  • the embodiment of the present invention provides a browser starting device.
  • the device includes: an obtaining unit 31, a deleting unit 32, and an operating unit 33.
  • the obtaining unit 31 is configured to acquire task data that the application layer needs to be initially started when the browser is initially started;
  • the deleting unit 32 is configured to delete data in the task data that is not related to the initial startup of the browser;
  • the running unit 33 is configured to, when the browser is initially started, run the task data after deleting data that is not related to the initial startup of the browser.
  • the invention provides a browser starting device, which firstly acquires task data that the application layer needs to be initially started when the browser is initially started, and then deletes data in the task data that is not related to the initial startup of the browser.
  • the task data after deleting data that is not related to the initial startup of the browser is run.
  • the present invention generally requires an initial startup task when the browser is initially started. In the data, filtering data that is not related to the initial startup of the browser can improve the speed at which the browser is started and the efficiency of browser startup.
  • an embodiment of the present invention provides another browser starting device.
  • the device includes: an obtaining unit 41, a deleting unit 42, and an operating unit 43.
  • the obtaining unit 41 is configured to acquire task data that the application layer needs to be initially started when the browser is initially started;
  • the deleting unit 42 is configured to delete data in the task data that is not related to the initial startup of the browser;
  • the running unit 43 is configured to, when the browser is initially started, run the task data after deleting data that is not related to the initial startup of the browser.
  • the apparatus further includes: a sorting unit 44.
  • the sorting unit 44 is configured to sort the tasks according to the task data and the browser initial startup preset correlation from high to low;
  • the deleting unit 42 is specifically configured to delete data in the task data whose correlation is lower than a preset priority.
  • the deleting unit 42 is specifically configured to delete task data of the device information corresponding to the browser in the task data.
  • the device further includes:
  • the saving unit 45 is configured to perform an initial operation and save the initial data when the irrelevant data is initially called.
  • the sorting unit 44 is further configured to perform initial priority sorting on the task data after deleting data that is not related to the initial startup of the browser.
  • the running unit 43 is specifically configured to: when the browser is initially started, run task data with a priority greater than a preset priority in the task data.
  • the running unit 43 is further configured to run, by using a preset asynchronous thread, task data whose priority is less than or equal to a preset priority in the task data.
  • the device further includes:
  • the updating unit 46 is configured to update the preset correlation and the preset priority according to the service type information when the browser is initially started.
  • Another browser starting device provided by the present invention firstly acquires task data that the application layer needs to be initially started when the browser is initially started, and then deletes data in the task data that is not related to the initial startup of the browser.
  • the task data After deleting data that is not related to the initial startup of the browser is executed.
  • the present invention generally requires an initial startup task when the browser is initially started. In the data, filtering data that is not related to the initial startup of the browser can improve the speed at which the browser is started and the efficiency of browser startup.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components in the browser activation method and apparatus in accordance with embodiments of the present invention.
  • the invention may also be implemented as a part for performing the methods described herein
  • a device or device program eg, a computer program and a computer program product.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 5 illustrates that a browser-initiated computing device, such as an application server, can be implemented in accordance with the present invention.
  • the computing device conventionally includes a computer program product or computer readable medium in the form of a processor 510 in the form of a memory 520.
  • the memory 520 may be an electronic storage memory 520 such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk or ROM having storage of program code 531 for performing any of the method steps described above.
  • Space 530 for example, storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 531 ', ie, code readable by a processor, such as 510, that when executed by a computing device causes the computing device to perform each of the methods described above step.
  • the embodiment of the invention discloses a method for starting a browser, comprising:
  • Deleting data in the task data that is not related to the initial startup of the browser
  • the task data after deleting data that is not related to the initial startup of the browser is run.
  • the browser startup method of A1 before the deleting the data in the task data that is not related to the initial startup of the browser, the method further includes the steps of:
  • A3 The browser startup method of A1 or A2, wherein deleting the data in the task data with a correlation lower than a preset correlation comprises:
  • the task data of the device information corresponding to the browser is deleted from the task data.
  • the initial operation is performed when the irrelevant data is initially called and the initial data is saved.
  • the browser startup method according to A1 before the browser is initially started, before deleting the task data after deleting data that is not related to the initial startup of the browser, the method also includes the steps:
  • the task data after data not related to the initial startup of the browser will be deleted, and initial priority ranking is performed;
  • the task data after deleting data that is not related to the initial startup of the browser includes:
  • task data having a priority greater than a preset priority in the task data is run.
  • the browser startup method of A5 after the browser is initially started, after running task data with a higher priority than a preset priority in the task data, the method further includes the steps of:
  • the task data in the task data whose priority is less than or equal to the preset priority is run by the preset asynchronous thread.
  • the embodiment of the invention further discloses a B8, a browser starting device, comprising:
  • the obtaining unit is configured to acquire task data that the application layer needs to be initially started when the browser is initially started;
  • a deleting unit configured to delete data in the task data that is not related to the initial startup of the browser
  • a running unit configured to: when the browser is initially started, run the task data after deleting data that is not related to the initial startup of the browser.
  • the browser activation device of B8, comprising: the device further comprising: a sorting unit;
  • the sorting unit is configured to sort the task data according to the highest initial to the browser initial startup relevance
  • the deleting unit is specifically configured to delete data in the task data whose correlation is lower than a preset priority.
  • the deleting unit is specifically configured to set the task data corresponding to the browser The task data of the backup information is deleted.
  • a saving unit configured to perform an initial operation and save the initial data when the irrelevant data is initially called.
  • the sorting unit is further configured to perform initial priority ordering on the task data after deleting data that is not related to the initial startup of the browser;
  • the running unit is specifically configured to: when the browser is initially started, run task data with a priority greater than a preset priority in the task data.
  • the running unit is further configured to run, by using a preset asynchronous thread, task data whose priority is less than or equal to a preset priority in the task data.
  • an updating unit configured to update the preset correlation and the preset priority according to the service type information when the browser is initially started.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种浏览器启动方法及装置,涉及信息技术领域,通过将浏览器初始启动时,应用层需要初始启动的任务数据中,与浏览器初始启动不相关的数据进行过滤,可以提高浏览器启动的速度以及浏览器启动的效率。所述方法包括:首先获取浏览器初始启动时,应用层需要初始启动的任务数据(101,201),然后将所述任务数据中与所述浏览器初始启动不相关的数据删除(102),当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据(103)。

Description

浏览器启动方法及装置 技术领域
本发明涉及一种信息技术领域,尤其涉及一种浏览器启动方法及装置。
背景技术
近些年来,随着信息技术的不断发展,互联网技术越来越成熟,通过浏览器浏览信息已经成为人们日常生活中的一部分,浏览器的普及率也越来越高。因此,浏览器的性能极大地影响着用户浏览信息的体验。其中,浏览器的启动速度快慢是衡量浏览器性能的重要指标之一。
目前在进行浏览器初始启动时,通常需要进行对象初始,数据赋值,服务启动等一系列的应用层Application初始化操作,使得浏览器在进行初始启动时,需要加载的数据量以及数据处理量较大,从而造成现有浏览器启动的速度较慢,浏览器启动的效率较低。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决或减缓上述问题的一种浏览器启动方法和相应的一种浏览器启动装置。根据本发明一个方面,提供了一种浏览器启动方法,包括:
获取浏览器初始启动时,应用层需要初始启动的任务数据;
将所述任务数据中与所述浏览器初始启动不相关的数据删除;
当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
根据本发明另一个方面,提供了一种浏览器启动装置,包括:
获取单元,用于获取浏览器初始启动时,应用层需要初始启动的任务数据;
删除单元,用于将所述任务数据中与所述浏览器初始启动不相关的数 据删除;
运行单元,用于当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行上述的浏览器启动方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。
本发明的有益效果为:
本发明提供的一种浏览器启动方法及装置,首先获取浏览器初始启动时,应用层需要初始启动的任务数据,然后将所述任务数据中与所述浏览器初始启动不相关的数据删除,当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。与目前在进行浏览器初始启动时,通常需要进行对象初始,数据赋值,服务启动等一系列的应用层Application初始化操作相比,本发明通过将浏览器初始启动时,应用层需要初始启动的任务数据中,与浏览器初始启动不相关的数据进行过滤,可以提高浏览器启动的速度以及浏览器启动的效率。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示意性地示出了本发明实施例提供的一种浏览器启动方法流程示意图;
图2示意性地示出了本发明实施例提供的另一种浏览器启动检测方法流程示意图;
图3示意性地示出了本发明实施例提供的一种浏览器启动装置结构示意图;
图4示意性地示出了本发明实施例提供的另一种浏览器启动装置结构示意图;
图5示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及
图6示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施例
下面结合附图和具体的实施方式对本发明作进一步的描述。
本发明实施例提供了一种网浏览器启动方法,如图1所示,所述方法包括:
101、获取浏览器初始启动时,应用层需要初始启动的任务数据。
其中,应用层的初始化是每个应用初始启动时的前提条件,应用层需要初始启动的任务数据可以包括对象初始操作任务数据、数据赋值任务数据、服务启动任务数据等,本发明实施例不做限定。具体地,可以通过对在应用层Application初始时执行的各任务进行拆分,得到应用层需要初始启动的各项任务数据。
102、将所述任务数据中与所述浏览器初始启动不相关的数据删除。
其中,与所述浏览器初始启动不相关的数据具体可以为不影响浏览器初始启动的任务数据,可以包括数据初始任务数据、对象初始任务数据等,与所述浏览器初始启动相关的数据具体可以包括对全局性Context的赋值任务数据、异步任务数据等浏览器初始启动时必须进行初始并且不耗时的任务数据,本发明实施例不做限定。例如,在Application初始的时候通常会初始数据初始任务SystemInfo类,该类中包含了设备屏幕宽高、密度、渠道号、设备唯一标识等涉及设备信息的初始任务数据和赋值任务数据, 但是SystemInfo类的整个初始过程需要耗费较长的时间,并且SystemInfo类中的任务数据不影响浏览器初始启动,因此将Application中的SystemInfo类的任务数据删除当SystemInfo中的数据在第一次被调用的时候进行初始,而不在浏览器初始启动时进行初始操作,因此可以提高浏览器初始启动的速度。
103、当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
对于本发明实施例,当所述浏览器初始启动时,通过将与所述浏览器初始启动不相关的Application中的任务数据进行过滤,可以保证浏览器初始正常启动的同时,减少不相关的任务数据造成的浏览器初始启动延时,可以提高浏览器启动的速度以及浏览器启动的效率。
本发明提供的一种浏览器启动方法,首先获取浏览器初始启动时,应用层需要初始启动的任务数据,然后将所述任务数据中与所述浏览器初始启动不相关的数据删除,当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。与目前在进行浏览器初始启动时,通常需要进行对象初始,数据赋值,服务启动等一系列的应用层Application初始化操作相比,本发明通过将浏览器初始启动时,应用层需要初始启动的任务数据中,与浏览器初始启动不相关的数据进行过滤,可以提高浏览器启动的速度以及浏览器启动的效率。
本发明实施例提供了另一种浏览器启动方法,如图2所示,所述方法包括:
201、获取浏览器初始启动时,应用层需要初始启动的任务数据。
其中,应用层的初始化是每个应用初始启动时的前提条件,应用层需要初始启动的任务数据可以包括对象初始操作任务数据、数据赋值任务数据、服务启动任务数据等,本发明实施例不做限定。
202、按照任务数据与所述浏览器初始启动预置相关性由高到低的顺序进行排序。
其中,所述预置相关性可以为对浏览器初始启动的影响度,任务数据对浏览器初始启动的影响越大,任务数据优先级顺序越高。例如,应用层 需要初始启动的任务包括数据赋值任务、服务启动任务、异步任务,其中,数据赋值任务和服务启动任务对浏览器初始启动无影响,异步任务是浏览器初始启动的必备条件,则异步任务数据的优先级高于赋值任务数据和服务启动任务数据。
203、将所述任务数据中相关性低于预置相关性的数据删除。
对于本发明实施例,通过将所述任务数据中相关性低于预置相关性的数据删除,可以进一步提高对应用层初始启动的任务数据的删除精度,在提高了浏览器初始启动速度的同时,保证了浏览器初始启动稳定性。例如,预置优先级为对浏览器初始启动有影响,则将任务数据中对浏览器初始启动无影响的任务数据删除。从而可以减少对浏览器初始启动无影响的任务数据所耗费的启动时长。
对于本发明实施例,步骤203具体可以包括:将所述任务数据中,与所述浏览器对应的设备信息的任务数据删除。设备信息的任务数据具体可以包括设备屏幕宽高、密度、渠道号、设备唯一标识等设备信息进行初始和赋值的数据。
204、当所述浏览器初始启动时,运行相关性高于预置相关性的数据。
对于本发明实施例,步骤204之前还可以包括:将相关性高于预置相关性的数据,进行初始优先级排序。其中,相关性高于预置相关性的数据可以为浏览器热启动的时候不需要重复初始的数据,热启动不需要开启的服务,全局静态的数据等初始操作任务数据。其中,热启动为浏览器主进程运行时的启动操作。将相关性高于预置相关性的数据,进行初始优先级排序具体可以包括:将相关性高于预置相关性的数据,按照任务重要性由高到低的顺序进行排序。
此时,步骤204具体可以包括:当所述浏览器初始启动时,运行所述任务数据中优先级大于预置优先级的任务数据,并且通过预置异步线程运行所述任务数据中优先级小于或等于预置优先级的任务数据。其中,优先级小于或等于预置优先级的任务数据可以包括SD卡可用判断任务数据、分享任务数据,卸载反馈监听任务数据等。对于本发明实施例,通过将优先级较低的任务数据通过预置异步线程运行,可以进一步提高浏览器初始启 动速度。进一步地,还可以将SD卡可用判断任务数据、分享任务数据,卸载反馈监听任务数据等进行同一封装后通过预置异步线程延后执行,可以进一步提高延后执行的效率,从而进一步提高浏览器初始启动速度。
进一步地,步骤204之后还可以包括:当所述相关性低于预置相关性的数据被初始调用时,进行初始操作并保存初始后的数据。从而在提高了浏览器的初始启动速度的同时,可以保证浏览器的正常运行,并且通过保存初始后的数据,可以避免数据的重复初始操作,进一步提升浏览器运行效率。
对于本发明实施例,还可以根据所述浏览器初始启动时的业务类型信息,对所述预置相关性和所述预置优先级进行更新。由于浏览器在初始启动时,运行不同业务对应的应用层需要初始启动的任务数据不同,因此根据业务类型信息,对所述预置相关性和所述预置优先级进行更新,可以在提高浏览器初始启动速度时,避免任务数据的错误删除,保证浏览器的初始启动稳定性。
本发明提供的另一种浏览器启动方法,首先获取浏览器初始启动时,应用层需要初始启动的任务数据,然后将所述任务数据中与所述浏览器初始启动不相关的数据删除,当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。与目前在进行浏览器初始启动时,通常需要进行对象初始,数据赋值,服务启动等一系列的应用层Application初始化操作相比,本发明通过将浏览器初始启动时,应用层需要初始启动的任务数据中,与浏览器初始启动不相关的数据进行过滤,可以提高浏览器启动的速度以及浏览器启动的效率。
进一步地,作为图1所述方法的具体实现,本发明实施例提供了一种浏览器启动装置,如图3所示,所述装置包括:获取单元31、删除单元32、运行单元33。
获取单元31,用于获取浏览器初始启动时,应用层需要初始启动的任务数据;
删除单元32,用于将所述任务数据中与所述浏览器初始启动不相关的数据删除;
运行单元33,用于当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
需要说明的是,本发明实施例提供的一种浏览器启动装置所涉及各功能单元的其他相应描述,可以参考图1中的对应描述,在此不再赘述。
本发明提供的一种浏览器启动装置,首先获取浏览器初始启动时,应用层需要初始启动的任务数据,然后将所述任务数据中与所述浏览器初始启动不相关的数据删除,当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。与目前在进行浏览器初始启动时,通常需要进行对象初始,数据赋值,服务启动等一系列的应用层Application初始化操作相比,本发明通过将浏览器初始启动时,应用层需要初始启动的任务数据中,与浏览器初始启动不相关的数据进行过滤,可以提高浏览器启动的速度以及浏览器启动的效率。
进一步地,作为图2所述方法的具体实现,本发明实施例提供了另一种浏览器启动装置,如图4所示,所述装置包括:获取单元41、删除单元42、运行单元43。
获取单元41,用于获取浏览器初始启动时,应用层需要初始启动的任务数据;
删除单元42,用于将所述任务数据中与所述浏览器初始启动不相关的数据删除;
运行单元43,用于当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
进一步地,所述装置还包括:排序单元44。
所述排序单元44,用于按照任务数据与所述浏览器初始启动预置相关性由高到低的顺序进行排序;
所述删除单元42,具体用于将所述任务数据中相关性低于预置优先级的数据删除。
进一步地,所述删除单元42,具体用于将所述任务数据中,与所述浏览器对应的设备信息的任务数据删除。
进一步地,所述装置还包括:
保存单元45,用于当所述不相关的数据被初始调用时进行初始操作并保存初始后的数据。
进一步地,所述排序单元44,还用于将删除与所述浏览器初始启动不相关的数据后的所述任务数据,进行初始优先级排序;
所述运行单元43,具体用于当所述浏览器初始启动时,运行所述任务数据中优先级大于预置优先级的任务数据。
进一步地,所述运行单元43,还用于通过预置异步线程运行所述任务数据中优先级小于或等于预置优先级的任务数据。
进一步地,所述装置还包括:
更新单元46,用于根据所述浏览器初始启动时的业务类型信息,对所述预置相关性和所述预置优先级进行更新。
需要说明的是,本发明实施例提供的一种浏览器启动装置所涉及各功能单元的其他相应描述,可以参考图2中的对应描述,在此不再赘述。
本发明提供的另一种浏览器启动装置,首先获取浏览器初始启动时,应用层需要初始启动的任务数据,然后将所述任务数据中与所述浏览器初始启动不相关的数据删除,当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。与目前在进行浏览器初始启动时,通常需要进行对象初始,数据赋值,服务启动等一系列的应用层Application初始化操作相比,本发明通过将浏览器初始启动时,应用层需要初始启动的任务数据中,与浏览器初始启动不相关的数据进行过滤,可以提高浏览器启动的速度以及浏览器启动的效率。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器启动方法及装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部 分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图5出了可以实现根据本发明的浏览器启动计算设备,例如应用服务器。该计算设备传统上包括处理器510以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储装存储器520具有用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图6述的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的 元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。
本发明实施例公开了A1、一种浏览器启动方法,包括:
获取浏览器初始启动时,应用层需要初始启动的任务数据;
将所述任务数据中与所述浏览器初始启动不相关的数据删除;
当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
A2、如A1所述的浏览器启动方法,所述将所述任务数据中与所述浏览器初始启动不相关的数据删除之前,所述方法还包括步骤:
按照任务数据与所述浏览器初始启动预置相关性由高到低的顺序进行排序;
将所述任务数据中相关性低于预置相关性的数据删除。
A3、如A1或A2所述的浏览器启动方法,所述将所述任务数据中相关性低于预置相关性的数据删除包括:
将所述任务数据中,与所述浏览器对应的设备信息的任务数据删除。
A4、如A1所述的浏览器启动方法,所述方法还包括步骤:
当所述不相关的数据被初始调用时进行初始操作并保存初始后的数据。
A5、如A1所述的浏览器启动方法,当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据之前,所述方法 还包括步骤:
将删除与所述浏览器初始启动不相关的数据后的所述任务数据,进行初始优先级排序;
所述当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据包括:
当所述浏览器初始启动时,运行所述任务数据中优先级大于预置优先级的任务数据。
A6、如A5所述的浏览器启动方法,所述当所述浏览器初始启动时,运行所述任务数据中优先级高于预置优先级的任务数据之后,所述方法还包括步骤:
通过预置异步线程运行所述任务数据中优先级小于或等于预置优先级的任务数据。
A7、如A1-A6任一项所述的浏览器启动方法,所述方法还包括步骤:
根据所述浏览器初始启动时的业务类型信息,对所述预置相关性和所述预置优先级进行更新。
本发明实施例还公开了B8、一种浏览器启动装置,包括:
获取单元,用于获取浏览器初始启动时,应用层需要初始启动的任务数据;
删除单元,用于将所述任务数据中与所述浏览器初始启动不相关的数据删除;
运行单元,用于当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
B9、如B8所述的浏览器启动装置,包括:所述装置还包括:排序单元;
所述排序单元,用于按照任务数据与所述浏览器初始启动预置相关性由高到低的顺序进行排序;
所述删除单元,具体用于将所述任务数据中相关性低于预置优先级的数据删除。
B10、如B8或B9所述的浏览器启动装置,
所述删除单元,具体用于将所述任务数据中,与所述浏览器对应的设 备信息的任务数据删除。
B11、如B8所述的浏览器启动装置,所述装置还包括:
保存单元,用于当所述不相关的数据被初始调用时进行初始操作并保存初始后的数据。
B12、如B9所述的浏览器启动装置,
所述排序单元,还用于将删除与所述浏览器初始启动不相关的数据后的所述任务数据,进行初始优先级排序;
所述运行单元,具体用于当所述浏览器初始启动时,运行所述任务数据中优先级大于预置优先级的任务数据。
B13、如B12所述的浏览器启动装置,
所述运行单元,还用于通过预置异步线程运行所述任务数据中优先级小于或等于预置优先级的任务数据。
B14、如B8-B13任一项所述的浏览器启动装置,所述装置还包括:
更新单元,用于根据所述浏览器初始启动时的业务类型信息,对所述预置相关性和所述预置优先级进行更新。

Claims (12)

  1. 一种浏览器启动方法,包括步骤:
    获取浏览器初始启动时,应用层需要初始启动的任务数据;
    将所述任务数据中与所述浏览器初始启动不相关的数据删除;
    当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
  2. 根据权利要求1所述的浏览器启动方法,所述将所述任务数据中与所述浏览器初始启动不相关的数据删除之前,所述方法还包括步骤:
    按照任务数据与所述浏览器初始启动预置相关性由高到低的顺序进行排序;
    将所述任务数据中相关性低于预置相关性的数据删除。
  3. 根据权利要求1或2所述的浏览器启动方法,所述将所述任务数据中相关性低于预置相关性的数据删除包括:
    将所述任务数据中,与所述浏览器对应的设备信息的任务数据删除。
  4. 根据权利要求1所述的浏览器启动方法,所述方法还包括步骤:
    当所述不相关的数据被初始调用时进行初始操作并保存初始后的数据。
  5. 根据权利要求1所述的浏览器启动方法,当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据之前,所述方法还包括步骤:
    将删除与所述浏览器初始启动不相关的数据后的所述任务数据,进行初始优先级排序;
    所述当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据包括:
    当所述浏览器初始启动时,运行所述任务数据中优先级大于预置优先级的任务数据。
  6. 一种浏览器启动装置,包括:
    获取单元,用于获取浏览器初始启动时,应用层需要初始启动的任务数据;
    删除单元,用于将所述任务数据中与所述浏览器初始启动不相关的数据删除;
    运行单元,用于当所述浏览器初始启动时,运行删除与所述浏览器初始启动不相关的数据后的所述任务数据。
  7. 根据权利要求6所述的浏览器启动装置,包括:所述装置还包括:排序单元;
    所述排序单元,用于按照任务数据与所述浏览器初始启动预置相关性由高到低的顺序进行排序;
    所述删除单元,具体用于将所述任务数据中相关性低于预置优先级的数据删除。
  8. 根据权利要求6或7所述的浏览器启动装置,
    所述删除单元,具体用于将所述任务数据中,与所述浏览器对应的设备信息的任务数据删除。
  9. 根据权利要求6所述的浏览器启动装置,所述装置还包括:
    保存单元,用于当所述不相关的数据被初始调用时进行初始操作并保存初始后的数据。
  10. 根据权利要求7所述的浏览器启动装置,
    所述排序单元,还用于将删除与所述浏览器初始启动不相关的数据后的所述任务数据,进行初始优先级排序;
    所述运行单元,具体用于当所述浏览器初始启动时,运行所述任务数据中优先级大于预置优先级的任务数据。
  11. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在服务器上运行时,导致所述服务器执行根据权利要求1-5中的任一个所述的浏览器启动方法。
  12. 一种计算机可读介质,其中存储了如权利要求11所述的计算机程序。
PCT/CN2016/109996 2015-12-21 2016-12-15 浏览器启动方法及装置 WO2017107835A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510967736.0 2015-12-21
CN201510967736.0A CN105630545B (zh) 2015-12-21 2015-12-21 浏览器启动方法及装置

Publications (1)

Publication Number Publication Date
WO2017107835A1 true WO2017107835A1 (zh) 2017-06-29

Family

ID=56045526

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109996 WO2017107835A1 (zh) 2015-12-21 2016-12-15 浏览器启动方法及装置

Country Status (2)

Country Link
CN (1) CN105630545B (zh)
WO (1) WO2017107835A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955445A (zh) * 2019-12-16 2020-04-03 平安国际智慧城市科技股份有限公司 基于快应用的个人信息的更新方法、装置和计算机设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630545B (zh) * 2015-12-21 2018-12-25 北京奇虎科技有限公司 浏览器启动方法及装置
CN111124513A (zh) * 2019-12-11 2020-05-08 无锡祥生医疗科技股份有限公司 超声设备的启动方法、装置及超声设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
CN102163150A (zh) * 2010-02-24 2011-08-24 腾讯科技(深圳)有限公司 一种系统启动方法及装置
CN103440453A (zh) * 2013-09-10 2013-12-11 北京奇虎科技有限公司 浏览器运行环境检测方法、客户端、服务器及系统
CN104239139A (zh) * 2014-08-25 2014-12-24 北京金山安全软件有限公司 一种处理开机自启动项目的方法、装置及终端
CN104346176A (zh) * 2013-07-24 2015-02-11 腾讯科技(深圳)有限公司 一种浏览器启动的方法及装置
CN105630545A (zh) * 2015-12-21 2016-06-01 北京奇虎科技有限公司 浏览器启动方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289380B (zh) * 2010-06-21 2014-02-26 中标软件有限公司 firefox启动加速方法
CN102707973B (zh) * 2012-05-04 2015-12-09 惠州Tcl移动通信有限公司 基于Android系统的应用程序启动的方法和系统
CN102999343A (zh) * 2012-11-29 2013-03-27 北京奇虎科技有限公司 禁止启动项目自启动的方法和装置
CN104199684B (zh) * 2014-08-13 2018-01-12 百度在线网络技术(北京)有限公司 浏览器冷启动的实现方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
CN102163150A (zh) * 2010-02-24 2011-08-24 腾讯科技(深圳)有限公司 一种系统启动方法及装置
CN104346176A (zh) * 2013-07-24 2015-02-11 腾讯科技(深圳)有限公司 一种浏览器启动的方法及装置
CN103440453A (zh) * 2013-09-10 2013-12-11 北京奇虎科技有限公司 浏览器运行环境检测方法、客户端、服务器及系统
CN104239139A (zh) * 2014-08-25 2014-12-24 北京金山安全软件有限公司 一种处理开机自启动项目的方法、装置及终端
CN105630545A (zh) * 2015-12-21 2016-06-01 北京奇虎科技有限公司 浏览器启动方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955445A (zh) * 2019-12-16 2020-04-03 平安国际智慧城市科技股份有限公司 基于快应用的个人信息的更新方法、装置和计算机设备
CN110955445B (zh) * 2019-12-16 2023-04-25 深圳赛安特技术服务有限公司 基于快应用的个人信息的更新方法、装置和计算机设备

Also Published As

Publication number Publication date
CN105630545A (zh) 2016-06-01
CN105630545B (zh) 2018-12-25

Similar Documents

Publication Publication Date Title
WO2015165232A1 (zh) 一种加载驱动程序的方法及嵌入式设备
US8676809B1 (en) Method and apparatus for mapping virtual machine incremental images
US8126859B2 (en) Updating a local version of a file based on a rule
US20070214390A1 (en) System and method for testing computer
JPH0756818A (ja) コンピュータのシステム記憶装置を試験する方法および装置
WO2018040270A1 (zh) 在Windows系统中加载Linux系统ELF文件的方法及装置
US20170046447A1 (en) Information Category Obtaining Method and Apparatus
WO2017107835A1 (zh) 浏览器启动方法及装置
US20070156778A1 (en) File indexer
WO2017076052A1 (zh) 一种代码处理方法及装置
JP2018528634A (ja) 動画像をプレビューする方法及びデバイス、並びに表現パッケージを表示する方法及びデバイス
US8984267B2 (en) Pinning boot data for faster boot
CN110825419A (zh) 一种固件刷新方法、装置及电子设备和存储介质
US10430115B2 (en) System and method for optimizing multiple packaging operations in a storage system
US11003543B2 (en) Generic metadata tags with namespace-specific semantics in a storage appliance
CN112559913B (zh) 一种数据处理方法、装置、计算设备及可读存储介质
US8768988B2 (en) Accessing snapshots of a time based file system
CN111382179A (zh) 数据处理方法、装置及电子设备
EP3264254B1 (en) System and method for a simulation of a block storage system on an object storage system
WO2022083190A1 (zh) 数据下载方法、装置、计算机设备和存储介质
TWI493463B (zh) Electronic device, universal extension firmware interface Basic input and output system firmware update method, recording media and computer program products
CN113741945A (zh) 基于云应用的应用磁盘热更新方法、装置、介质及设备
US20210200646A1 (en) System and method of generating automatic checkpoints of a distributed file system
CN107741940B (zh) 一种数据储存方法及存储系统
US9659036B2 (en) Adaptive relational database access

Legal Events

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

Ref document number: 16877646

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877646

Country of ref document: EP

Kind code of ref document: A1