CN102855311A - Intelligent file resource loader and intelligent file resource loading method - Google Patents

Intelligent file resource loader and intelligent file resource loading method Download PDF

Info

Publication number
CN102855311A
CN102855311A CN201210303378XA CN201210303378A CN102855311A CN 102855311 A CN102855311 A CN 102855311A CN 201210303378X A CN201210303378X A CN 201210303378XA CN 201210303378 A CN201210303378 A CN 201210303378A CN 102855311 A CN102855311 A CN 102855311A
Authority
CN
China
Prior art keywords
file resource
loading
resource
file
module
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.)
Pending
Application number
CN201210303378XA
Other languages
Chinese (zh)
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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201210303378XA priority Critical patent/CN102855311A/en
Publication of CN102855311A publication Critical patent/CN102855311A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an intelligent file resource loader, which comprises an information acquisition module, a parameter setting module, a queue module and a loading module. The invention additionally provides an intelligent file resource loading method, which comprises the following steps of: acquiring file resource information: acquiring attribute information of file resources; creating a file resource queue: setting loading parameters of loaded resources, setting a method for loading the file resources according to the attribute information and the loading parameters of the loaded resources, and generating a loading queue; and loading the file resources: executing the loading of the file resources according to the generated loading queue. The intelligent file resource loader and the intelligent file resource loading method have the beneficial effects that, aiming at solving the problems of low resource utilization ratio and low loading efficiency caused by singleness of the existing loading method, a serial or parallel loading method can be flexibly and intelligently selected according to the actual situation of a network, an overtime loading and retry mechanism is conducted by parameter setting and the resource utilization ratio is effectively improved.

Description

File resource intelligence loader and file resource intelligence loading method
Technical field
The present invention relates to the file load field, more specifically, relate to a kind of file resource intelligence loader and intelligent loading method.
Background technology
Current common file resource type comprises original binary file, common flash file, files in stream media (such as flv type, mp4 type or f4v type), bitmap file (such as jpg type, png type or gif type), text etc.Main file resource load mode has two kinds: loaded in series mode and load mode in parallel.
Wherein, the loaded in series mode loads one by one to file, if when having abnormal occurrence or state to change in loading procedure, with the event form load information of dishing out, in case current loading unit lost efficacy or finished, continue to load next unit, until all loading, finish all loading units.The loaded in series mode belongs to steady loading in bandwidth, can guarantee in loading procedure, not to be subjected to other to load the interference of process, load success ratio higher, but the loading duration of loaded in series mode is the summation to the All Files load time, causes the elapsed time of file load longer.
And load mode in parallel starts a plurality of loading procedures simultaneously, if when having abnormal occurrence or state to change in loading procedure, with the event form load information of dishing out, finishes until all loading units all load equally.Load mode in parallel can take full advantage of the network bandwidth, saves Internet resources.When network was idle, utilization factor in parallel was the highest.When but more or load document was larger when the load document number, load mode in parallel occurred loading failed possibility in loading procedure higher, and it is higher to consume system resource.In the situation that some network condition is bad, the total duration of the loading of load mode in parallel even surpass the total duration of loading of loaded in series mode sometimes.
Load mode commonly used is only fixed the single load mode that adopts above-mentioned one at present, that is, only adopt the loaded in series mode or only adopt load mode in parallel.Can not carry out Lookup protocol according to network condition, easily occur prolonging the load time, take the problems such as the network bandwidth and loading efficiency are low, can cause lower network resource utilization and loading efficiency.
Summary of the invention
The present invention proposes a kind of file resource intelligence loader, comprises that acquisition of information module, parameter arrange module, formation module and load-on module, and wherein, described acquisition of information module is used for obtaining the attribute information of described file resource; Described parameter arranges the loading parameters that module is used for arranging according to the attribute information of described file resource described file resource; The attribute information of the file resource that described formation module is obtained according to described resource information acquisition module and the loading parameters that described parameter arranges the module setting arrange the load mode of described file resource, and generate load queue; The load queue that described load-on module generates according to described formation module is carried out the loading of described file resource.
Preferably, the attribute information of described file resource comprises the address of file resource and the type of file resource.
Preferably, the type of described file resource comprises video file, picture file, text.
Preferably, the attribute information of described file resource also comprises size, broadcast attribute and the network condition of described file resource.
Preferably, described loading parameters comprises the number of retries of loading of described file resource and the overtime duration when loading.
6, file resource intelligence loader according to claim 1 is characterized in that, the load mode of described file resource comprises loaded in series, the in parallel loading or mix-loaded.
Preferably, described load-on module comprises loaded in series module and load-on module in parallel.
The present invention also proposes a kind of file resource intelligence loading method, may further comprise the steps:
Obtain file resource information: the attribute information that obtains described file resource;
Create the file resource formation: the loading parameters of described loading resource is set, according to attribute information and the described loading parameters of described loading resource the mode that described file resource loads is arranged, and generate load queue;
Load document resource: carry out the loading of described file resource according to the described load queue that generates.
Preferably, the attribute information of described file resource comprises the address of file resource and the type of file resource.
Preferably, the attribute information of described file resource also comprises size, broadcast attribute and the network condition of described file resource.
Preferably, the type of described file resource comprises video file, picture file, text.
Preferably, described loading parameters comprises the number of retries of loading of described file resource and the overtime duration when loading.
Preferably, the load mode of described file resource comprises loaded in series, the in parallel loading or mix-loaded.
A kind of file resource intelligence loader that the present invention proposes and file resource intelligence loading method, its beneficial effect is for single resource utilization and the lower problem of loading efficiency of causing of current load mode, can select the serial or parallel connection load mode according to the actual conditions of network intelligently flexibly, carry out overtime loading and retry mechanism by the parameter setting, the Effective Raise resource utilization.
Description of drawings
In order to make the present invention be convenient to understand, specific embodiments of the invention are described by reference to the accompanying drawings now.
The structural representation of the file resource intelligence loader that Fig. 1 the present invention proposes.
The process flow diagram of a kind of file resource intelligence loading method that Fig. 2 the present invention also proposes.
Embodiment
Below in conjunction with accompanying drawing with preferred embodiment the present invention is described in further detail.
As shown in Figure 1, a preferred embodiment of the file resource intelligence loader of the present invention's proposition is that described loader comprises that acquisition of information module, parameter arrange module, formation module and load-on module.
The acquisition of information module is used for obtaining the attribute information of file resource, and the attribute information of file resource comprises the address of file resource and the type of file resource, also comprises size, broadcast attribute and the network condition etc. of file resource.The type of file resource can be the types such as video file, picture file, text.Play attribute and be positional information that this document resource plays and scene information etc.Network condition comprises that whether whether enough, current periods of the network bandwidth are network congestion period, the current network informations such as network speed.
Parameter arranges the loading parameters that module is used for arranging according to the attribute information of file resource file resource, and this loading parameters comprises number of retries, the overtime duration when loading of the loading of file resource.
The number of retries that loads and the overtime duration when loading can arrange according to the type of file resource, and for example, it is 3 that text loads number of times, and overtime duration is 5000 milliseconds, and it is 13 that bitmap file loads number of times, and overtime duration is 6000 milliseconds etc.
The attribute information of the file resource that the formation module is obtained according to the resource information acquisition module and the loading parameters that parameter arranges the module setting arrange the type that file resource loads, and generate load queue.The attribute information of the file resource that the formation module is obtained according to the resource information acquisition module arranges the loading sequence of file resource, according to this loading sequence and loading parameters, the load mode of file resource is set, and file resource is generated loadingsequence.
The load mode of file resource can be set to loaded in series, the in parallel loading or mix-loaded, selects different load modes according to the attribute information of file resource, generally is defaulted as the loaded in series mode.
Above-mentioned the different load mode of file resource can be arranged according to the size of file.For larger file, for example files in stream media can adopt the loaded in series mode, and described files in stream media is loaded one by one.And for less file, such as text or bitmap file etc. then adopted load mode in parallel, and these files are carried out loaded in parallel.
The load modes different to file resource can also arrange according to the network condition of customer group.Detecting current network condition when good, can adopt load mode in parallel, improve transfer rate, for example current network flow adopts load mode in parallel greater than 120k/s.Detecting current network conditions when relatively poor, can adopt the loaded in series mode, for example current network flow is less than or equal to 120k/s, adopts the loaded in series mode.
The load modes different to file resource can also arrange according to the broadcast attribute of file.When carrying advertisement is play, adopt the load mode of series connection; And for loading various plug-in units, then adopt load mode in parallel.
The load modes different to file resource can also arrange according to the opportunity of file load.For example, before files in stream media is play, it is adopted load mode in parallel, and in files in stream media is play, then adopt the load mode of series connection.
The load modes different to file resource can also divide into groups according to the file size that current needs load, and adopt the mix-loaded mode.When not limiting loading sequence, file that will be larger (for example, file size is greater than 500k) is assigned to the loaded in series group, and the file in the described loaded in series group adopts the loaded in series mode; And will assign to loading group in parallel than small documents (for example, file size is less than or equal to 500k), the file in the described loading group in parallel adopts load mode in parallel.For then adopting the loaded in series mode between each loading group, can effectively utilize Internet resources like this, improve loading efficiency.
Load-on module comprises loaded in series module and load-on module in parallel, and load-on module calls different loading kernels according to load mode, and the file resource in the load queue is loaded.
As shown in Figure 2, also provide a kind of file resource intelligence loading method such as figure the present invention, utilize above-mentioned file resource intelligence loader that file resource is carried out intelligence and load, concrete steps comprise:
Step 1, obtain file resource information: the attribute information that obtains described file resource.
The attribute information of file resource comprises the address of file resource and the type of file resource, also comprises size, broadcast attribute and the network condition etc. of file resource.The type of file resource can be the types such as video file, picture file, text.Play attribute and be positional information that this document resource plays and scene information etc.Network condition comprises that whether whether enough, current periods of the network bandwidth are network congestion period, the current network informations such as network speed.
Step 2, create the file resource formation: the loading parameters of described loading resource is set, according to attribute information and the described loading parameters of described loading resource the mode that described file resource loads is arranged, and generate load queue.
At first, the loading parameters of file resource is set according to the attribute information of file resource, this loading parameters comprises the number of retries of loading of file resource and the overtime duration when loading.
The number of retries that loads and the overtime duration when loading can arrange according to the type of file resource, and for example, it is 3 that text loads number of times, and overtime duration is 5000 milliseconds, and it is 13 to eat that bitmap file loads number of times, and overtime duration is 6000 milliseconds etc.
Then, the attribute information of the file resource that obtains according to the resource information acquisition module arranges the loading sequence of file resource, according to this loading sequence and loading parameters, the load mode of file resource is set, and file resource is generated loadingsequence.
The load mode of file resource can be set to loaded in series, the in parallel loading or mix-loaded, selects different load modes according to the attribute information of file resource, generally is defaulted as the loaded in series mode.
Above-mentioned the different load mode of file resource can be arranged according to the size of file.For larger file, for example files in stream media can adopt the loaded in series mode, and described files in stream media is loaded one by one.And for less file, such as text or bitmap file etc. then adopted load mode in parallel, and these files are carried out loaded in parallel.
The load modes different to file resource can also arrange according to the network condition of customer group.Detecting current network condition when good, can adopt load mode in parallel, improve transfer rate, for example current network flow adopts load mode in parallel greater than 120k/s.Detecting current network conditions when relatively poor, can adopt the loaded in series mode, for example current network flow is less than or equal to 120k/s, adopts the loaded in series mode.
The load modes different to file resource can also arrange according to the broadcast attribute of file.When carrying advertisement is play, adopt the load mode of series connection; And for loading various plug-in units, then adopt load mode in parallel.
The load modes different to file resource can also arrange according to the opportunity of file load.For example, before files in stream media is play, it is adopted load mode in parallel, and in files in stream media is play, then adopt the load mode of series connection.
The load modes different to file resource can also divide into groups according to the file size that current needs load, and adopt the mix-loaded mode.When not limiting loading sequence, file that will be larger (for example, file size is greater than 500k) is assigned to the loaded in series group, and the file in the described loaded in series group adopts the loaded in series mode; And will assign to loading group in parallel than small documents (for example, file size is less than or equal to 500k), the file in the described loading group in parallel adopts load mode in parallel.For then adopting the loaded in series mode between each loading group, can effectively utilize Internet resources like this, improve loading efficiency.
Step 3, load document resource: carry out the loading of described file resource according to the load queue that generates.
Call different loading kernels according to load mode, the file resource in the load queue is loaded.
Adopt file resource intelligence loader of the present invention and intelligent loading method, can select the serial or parallel connection load mode according to the actual conditions of network intelligently flexibly, carry out overtime loading and retry mechanism by the parameter setting, the Effective Raise resource utilization.
Need to prove, the category of the scheme of file resource intelligence loader of the present invention and intelligent loading method includes but not limited to the combination in any between the each part mentioned above.
Although illustrate and described the present invention with reference to its preferred embodiment particularly, those skilled in the art will appreciate that and to make the various changes on form and the details and do not break away from the scope of the present invention described in the appended claims.Abovely describe in detail in conjunction with specific embodiments of the invention, but be not to be limitation of the present invention.Any simple modification that every foundation technical spirit of the present invention is done above embodiment all still belongs to the scope of technical solution of the present invention.

Claims (10)

1. a file resource intelligence loader is characterized in that, comprises that acquisition of information module, parameter arrange module, formation module and load-on module, wherein,
Described acquisition of information module is used for obtaining the attribute information of described file resource;
Described parameter arranges the loading parameters that module is used for arranging according to the attribute information of described file resource described file resource;
The attribute information of the file resource that described formation module is obtained according to described resource information acquisition module and the loading parameters that described parameter arranges the module setting arrange the load mode of described file resource, and generate load queue;
The load queue that described load-on module generates according to described formation module is carried out the loading of described file resource.
2. file resource intelligence loader according to claim 1 is characterized in that, the attribute information of described file resource comprises the address of file resource and the type of file resource.
3. file resource intelligence loader according to claim 2 is characterized in that, the type of described file resource comprises video file, picture file, text.
4. file resource intelligence loader according to claim 2 is characterized in that, the attribute information of described file resource also comprises size, broadcast attribute and the network condition of described file resource.
5. file resource according to claim 1 intelligence loader is characterized in that, described loading parameters comprises the number of retries of loading of described file resource and the overtime duration when loading.
6. file resource intelligence loader according to claim 1 is characterized in that, the load mode of described file resource comprises loaded in series, the in parallel loading or mix-loaded.
7. file resource intelligence loader according to claim 1 is characterized in that, described load-on module comprises loaded in series module and load-on module in parallel.
8. a file resource intelligence loading method is characterized in that, may further comprise the steps:
Obtain file resource information: the attribute information that obtains described file resource;
Create the file resource formation: the loading parameters of described loading resource is set, according to attribute information and the described loading parameters of described loading resource the mode that described file resource loads is arranged, and generate load queue;
Load document resource: carry out the loading of described file resource according to the described load queue that generates.
9. file resource intelligence loading method according to claim 8 is characterized in that, the attribute information of described file resource comprises the address of file resource and the type of file resource.
10. file resource intelligence loading method according to claim 9 is characterized in that, the attribute information of described file resource also comprises size, broadcast attribute and the network condition of described file resource.
CN201210303378XA 2012-08-24 2012-08-24 Intelligent file resource loader and intelligent file resource loading method Pending CN102855311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210303378XA CN102855311A (en) 2012-08-24 2012-08-24 Intelligent file resource loader and intelligent file resource loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210303378XA CN102855311A (en) 2012-08-24 2012-08-24 Intelligent file resource loader and intelligent file resource loading method

Publications (1)

Publication Number Publication Date
CN102855311A true CN102855311A (en) 2013-01-02

Family

ID=47401899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210303378XA Pending CN102855311A (en) 2012-08-24 2012-08-24 Intelligent file resource loader and intelligent file resource loading method

Country Status (1)

Country Link
CN (1) CN102855311A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677939A (en) * 2013-12-25 2014-03-26 广东天拓资讯科技有限公司 Method and device for loading scene images of online game
CN107491334A (en) * 2017-08-29 2017-12-19 四川长虹电器股份有限公司 A kind of tissue and loading method for preloading file
CN108063680A (en) * 2016-11-09 2018-05-22 深圳市太易云互联科技有限公司 Resource allocation control method and device
CN109325002A (en) * 2018-09-03 2019-02-12 北京京东金融科技控股有限公司 Text file processing method, device, system, electronic equipment, storage medium
CN109857649A (en) * 2019-01-14 2019-06-07 珠海金山网络游戏科技有限公司 A kind of resource testing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250510A1 (en) * 2006-04-19 2007-10-25 George Nachman Dynamic RSS services
CN101702743A (en) * 2009-11-04 2010-05-05 中兴通讯股份有限公司 Self-adaption adjustment method of mobile terminal browser and device thereof
CN101763357A (en) * 2008-11-13 2010-06-30 北京搜狗科技发展有限公司 Method and system for browser to load internet resources
US7953870B1 (en) * 2009-12-09 2011-05-31 Sprint Communications Company L.P. Dynamic HTTP service timeout adjustment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250510A1 (en) * 2006-04-19 2007-10-25 George Nachman Dynamic RSS services
CN101763357A (en) * 2008-11-13 2010-06-30 北京搜狗科技发展有限公司 Method and system for browser to load internet resources
CN101702743A (en) * 2009-11-04 2010-05-05 中兴通讯股份有限公司 Self-adaption adjustment method of mobile terminal browser and device thereof
US7953870B1 (en) * 2009-12-09 2011-05-31 Sprint Communications Company L.P. Dynamic HTTP service timeout adjustment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677939A (en) * 2013-12-25 2014-03-26 广东天拓资讯科技有限公司 Method and device for loading scene images of online game
CN103677939B (en) * 2013-12-25 2018-01-16 广东星辉天拓互动娱乐有限公司 A kind of loading method and device of network game field picture
CN108063680A (en) * 2016-11-09 2018-05-22 深圳市太易云互联科技有限公司 Resource allocation control method and device
CN107491334A (en) * 2017-08-29 2017-12-19 四川长虹电器股份有限公司 A kind of tissue and loading method for preloading file
CN109325002A (en) * 2018-09-03 2019-02-12 北京京东金融科技控股有限公司 Text file processing method, device, system, electronic equipment, storage medium
CN109325002B (en) * 2018-09-03 2021-03-05 北京京东金融科技控股有限公司 Text file processing method, device and system, electronic equipment and storage medium
CN109857649A (en) * 2019-01-14 2019-06-07 珠海金山网络游戏科技有限公司 A kind of resource testing method and system
CN109857649B (en) * 2019-01-14 2022-07-26 珠海金山网络游戏科技有限公司 Resource testing method and system

Similar Documents

Publication Publication Date Title
CN102855311A (en) Intelligent file resource loader and intelligent file resource loading method
CN104025553B (en) Optimization engine and correlation technique in mobile cloud accelerator
US11218703B2 (en) Systems and methods for adaptively encoding video stream
CN106851336A (en) The audio-video document code-transferring method and system of a kind of Dynamic Resource Allocation for Multimedia
CN108810657B (en) Method and system for setting video cover
CN104394439B (en) Based on the system that the video recommendations of dynamic-configuration is shunted
CN108134814B (en) Service data processing method and device
CN106331783B (en) A kind of resource allocation methods, device and intelligent television system
CN106331089A (en) Video play control method and system
CN110505523B (en) Video transcoding priority order control method and processing terminal
CN102591594B (en) Data processing method and equipment
CN101110947A (en) Service scheduling method for interactive television system
CN108710539A (en) Information processing method, terminal and readable storage medium
CN104144202A (en) Hadoop distributed file system access method, system and device
CN104202386A (en) High-concurrency distributed file system and secondary load balancing method thereof
CN101695104B (en) Method for requesting server by digital TV terminal and related equipment thereof
CN107172504B (en) Distributed processing method and device for streaming audio and video data
CN111131512B (en) Equipment information processing method and device, storage medium and processor
CN109327705A (en) A kind of transmission method of live video, device, server and medium
CN104378239A (en) Rapid reliability index statistical system and method based on cluster frame
CN102523112B (en) Information processing method and equipment
CN102103464B (en) Method and device for outputting service pack information
CN101753607B (en) Working device and method for server
JPWO2014199585A1 (en) Delivery control apparatus and method, push delivery system, and computer program
CN108337537B (en) Cloud platform video playing and scheduling method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130102