CN110347493A - Processing method, display methods, device, equipment and the storage medium of page data - Google Patents

Processing method, display methods, device, equipment and the storage medium of page data Download PDF

Info

Publication number
CN110347493A
CN110347493A CN201910641725.1A CN201910641725A CN110347493A CN 110347493 A CN110347493 A CN 110347493A CN 201910641725 A CN201910641725 A CN 201910641725A CN 110347493 A CN110347493 A CN 110347493A
Authority
CN
China
Prior art keywords
page data
page
type
service
data
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
CN201910641725.1A
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.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology 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 Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN201910641725.1A priority Critical patent/CN110347493A/en
Publication of CN110347493A publication Critical patent/CN110347493A/en
Pending legal-status Critical Current

Links

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The embodiment of the invention discloses a kind of processing method of page data, display methods, device, equipment and storage mediums.It include: that page data is obtained according to the page request that client is sent;Wherein, the page data includes multiple business type;The page data is distributed at least two threads according to type of service and carries out parallel processing, obtains the corresponding page data to be shown of multiple business type;It is sent to the client after the page data to be shown of multiple business type is polymerize, so that page data is shown in corresponding page area by the client according to type of service.The processing method of page data provided in an embodiment of the present invention, page data is distributed according to type of service at least two threads and carries out parallel processing, the speed of page data processing can be improved, to save the time of page data processing, improve the efficiency that the page is shown.

Description

Processing method, display methods, device, equipment and the storage medium of page data
Technical field
The present embodiments relate to page data technical field more particularly to a kind of processing methods of page data, display Method, apparatus, equipment and storage medium.
Background technique
Since Webpage constantly complicates, page data also has multifarious feature.By Webpage according to number Different modules is divided into according to type of service, the data that these modules issue server carry out subregion exhibition according to type of service Show.Page data needs to handle it before displaying.
In the prior art, very time-consuming when handling page data, reduce the speed that the page is shown.
Summary of the invention
The embodiment of the present invention provides processing method, display methods, device, equipment and the storage medium of a kind of page data, The time of page data processing can be saved, the speed that the page is shown is improved.
In a first aspect, the embodiment of the invention provides a kind of processing methods of page data characterized by comprising
According to the page request that client is sent, page data is obtained;Wherein, the page data includes multiple business class Type;
The page data is distributed at least two threads according to type of service and carries out parallel processing, obtains multiple business The corresponding page data to be shown of type;
It is sent to the client after the page data to be shown of multiple business type is polymerize, so that the client is pressed Page data is shown in corresponding page area according to type of service.
Further, the page data is distributed at least two threads according to type of service and carries out parallel processing, obtained Obtain the corresponding page data to be shown of a variety of types of service, comprising:
For current thread, judge to handle whether the duration of the page data of present type of service is more than setting duration;
If being more than, stop the page data for handling present type of service, and the current business class is obtained from caching The corresponding history page data of type, as the corresponding page data to be shown of present type of service.
Further, the corresponding history page data of the present type of service are obtained from caching, as current business The corresponding page data to be shown of type, comprising:
Determine that the page data of the present type of service completes the first quantity of processing;
The history page of corresponding second quantity of the present type of service is obtained from caching according to first quantity Data;
The page data of completion processing of first quantity and the history page data of the second quantity are determined as currently The corresponding page data to be shown of type of service.
Further, after the page data for stopping processing present type of service, further includes:
The page data of unappropriated type of service is sent to the current thread to handle;
It returns and executes whether the duration for the page data for judging to handle present type of service for current thread is more than setting The operation of duration, until the page data completion of all types of service is handled.
Further, the page data is sent at least two threads according to type of service and carries out parallel processing, Include:
For current thread, at least one of following processing is executed according to page data of the setting rule to present type of service Operation: data conversion, filtering and sequence.
Further, fork-join model realization of the method based on java asynchronous thread;
The page data is distributed at least two threads according to type of service and carries out parallel processing, comprising:
In fork node, the page data is distributed at least two threads according to type of service and carries out parallel processing;
The client is sent to after the page data to be shown of multiple business type is polymerize, comprising:
In join node, the client is sent to after the page data to be shown of multiple business type is polymerize.
Second aspect, the embodiment of the invention also provides a kind of display methods of page data, comprising:
The page request of loading page is sent to server;So that the server obtains page according to the page request Face data, and the page data is distributed at least two threads according to type of service and carries out parallel processing, it obtains to be shown Page data;
Receive the page data to be shown that server returns;Wherein, the page data to be shown includes multiple business class Type;
The page data to be shown is distributed to corresponding module according to type of service;
The page data to be shown that each module loading receives is controlled, so that page data to be shown is in the page where module Face region is shown.
The third aspect, the embodiment of the invention also provides a kind of processing units of page data, comprising:
Page data obtains module, and the page request for being sent according to client obtains page data;Wherein, described Page data includes multiple business type;
Page data to be shown obtains module, for the page data to be distributed at least two lines according to type of service Cheng Jinhang parallel processing obtains the corresponding page data to be shown of multiple business type;
Page data sending module to be shown, for being sent to after polymerizeing the page data to be shown of multiple business type The client, so that page data is shown in corresponding page area by the client according to type of service.
Fourth aspect, the embodiment of the invention also provides a kind of display devices of page data, comprising:
Page request sending module, for the page request of loading page to be sent to server;So that the server According to the page request obtain page data, and by the page data according to type of service distribute at least two threads into Row parallel processing obtains page data to be shown;
Page data receiving module to be shown, for receiving the page data to be shown of server return;Wherein, it is described to Show that page data includes multiple business type;
Page data distribution module to be shown, for the page data to be shown to be distributed to correspondence according to type of service Module;
Data disaply moudle, the page data to be shown received for controlling each module loading, so that the page to be shown Data are shown in the page area where module.
5th aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, the processor are realized when executing described program as the present invention is real Apply the processing method of page data described in example or the display methods of page data as described in the embodiments of the present invention.
6th aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, the program realize the processing method or the present invention of page data as described in the embodiments of the present invention when being executed by processor The display methods of page data described in embodiment.
The embodiment of the present invention obtains page data according to the page request that client is sent first, then by page data At least two threads are distributed to according to type of service and carry out parallel processing, obtain the corresponding page to be shown of multiple business type Face data is sent to client after finally polymerizeing the page data to be shown of multiple business type, so that client is according to industry Page data is shown in corresponding page area by service type.The processing side of page data provided in an embodiment of the present invention Page data is distributed according to type of service at least two threads and carries out parallel processing by method, and page data processing can be improved Speed improve the efficiency that shows of the page to save the time of page data processing.
Detailed description of the invention
Fig. 1 is the flow chart of the processing method of one of the embodiment of the present invention one page data;
Fig. 2 is that one of the embodiment of the present invention one page data shows exemplary diagram;
Fig. 3 is the exemplary diagram of one of embodiment of the present invention one parallel processing page data;
Fig. 4 is the flow chart of the display methods of one of the embodiment of the present invention two page data;
Fig. 5 is the structural schematic diagram of the processing unit of one of the embodiment of the present invention three page data;
Fig. 6 is the structural schematic diagram of the display device of one of the embodiment of the present invention four page data;
Fig. 7 is the structural schematic diagram of one of the embodiment of the present invention five computer equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the processing method for page data that the embodiment of the present invention one provides, and the present embodiment can fit The case where for handling page data, this method can be executed by the processing unit of page data, which can be by Hardware and/or software composition, and can generally be integrated in the equipment with page data processing function, which can be service The electronic equipments such as device or server cluster.As shown in Figure 1, this method specifically comprises the following steps:
Step 110, page data is obtained according to the page request that client is sent.
Wherein, page data includes multiple business type.It include multiple modules in customer terminal webpage, often in the present embodiment A module is responsible for loading a kind of page data of type of service.When client detects that user triggers the operation of loading page, Page request is generated, and page request is sent to server, server obtains client according to the page request that client is sent Page data needed for end page face.Illustratively, it for original list (or recommending the page) is broadcast live, is shown in original list The data of different service types, such as: game class live data, singing class live data and cuisines class live data.Fig. 2 is One of embodiment of the present invention page data shows exemplary diagram, as shown in Fig. 2, page data includes game A, B, C, D class number According to singing A, B, C, D class data and cuisines A, B, C, D class data.
Step 120, page data is distributed at least two threads according to type of service and carries out parallel processing, obtained a variety of The corresponding page data to be shown of type of service.
Wherein, the quantity of thread can be the value of the quantity no more than type of service.Specifically, obtain page data it Afterwards, type of service is determined according to the identification code that page data carries, and the page data of identical services type is distributed to same A thread is handled, i.e., handles task, a kind of page data one task of creation of type of service according to type of service creation. Illustratively, it is assumed that have 10 kinds of types of service in page data, then create 10 processing tasks, and have 3 threads in system, then First wherein 3 tasks it will distribute to this 3 threads and handle, after the completion of wherein any one thread process, then will not divide Matching for task is distributed to the thread and is handled, until all page data completions are handled.Fig. 3 is in the embodiment of the present invention The exemplary diagram of parallel processing page data.
Optionally, page data is distributed at least two threads according to type of service and carries out parallel processing, obtained a variety of The process of the corresponding page data to be shown of type of service may is that for current thread, judge to handle current business class Whether the duration of the page data of type is more than setting duration;If being more than, stop the page data for handling present type of service, and The corresponding history page data of present type of service are obtained from caching, as the corresponding page number to be shown of present type of service According to.
Wherein, setting duration can be set to the arbitrary value between 30-50ms.History page data can be in client The data shown in the page.In the present embodiment, history page data can be cached using Redis_LUR.If current thread The duration for handling the page data of present type of service is more than setting duration, then stops the page number for handling present type of service According to, and the corresponding history page data of present type of service are obtained from caching, it is corresponding to be shown as present type of service Page data, the advantage of doing so is that, the processing speed of full page data can be improved, while guaranteeing page data in the page Successful display.
Specifically, the corresponding history page data of present type of service are obtained from caching, as present type of service pair The mode for the page data to be shown answered may is that the page data of determining present type of service completes the first quantity of processing; The history page data of corresponding second quantity of present type of service are obtained from caching according to the first quantity;By the first quantity The history page data of the page data and the second quantity of completing processing are determined as the corresponding page to be shown of present type of service Data.
Current the first quantity that the business datum of present type of service is completed to processing within the set duration is determined first, so Quantity the second quantity of calculating of the page data of the present type of service shown afterwards according to the first quantity and customer terminal webpage, and from The history page data of corresponding second quantity of present type of service are obtained in caching, finally by the completion processing of the first quantity The history page data of page data and the second quantity are determined as the corresponding page data to be shown of present type of service.It is exemplary , it is assumed that the quantity that the page data of game A class is shown in the page is by 10, and current thread completes processing 6 in 30ms, then The historical data of 4 game A classes is obtained from caching, and 6 game A class data that processing is completed and 4 historical datas are made For game A class data to be shown.
Optionally, page data is sent at least two threads by type of service can in the way of progress parallel processing To be: for current thread, executing at least one of following processing according to page data of the setting rule to present type of service and grasp Make: data conversion, filtering and sequence.
Wherein, data conversion can be with the conversion of format, language;Data filtering can be to being drawn into black name in page data List or the data for not meeting setting rule are filtered;Sequence can be network assessment amount (such as point according to each page data The amount of hitting) it is ranked up.
Step 130, it is sent to client after the page data to be shown of multiple business type being polymerize, so that client is pressed Page data is shown in corresponding page area according to type of service.
Specifically, after the completion of the page data processing of all types of service, by the page number to be shown of each type of service According to being polymerize, and the data after polymerization are sent to client, so that client is according to type of service by page number to be shown According to being distributed to corresponding module, and the page data to be shown that each module loading receives is controlled, so that page data is shown respectively Show in corresponding page area.
It optionally, further include following steps: will be unappropriated after the page data for stopping processing present type of service The page data of type of service is sent to current thread and is handled, and returns to execution for current thread, judges that processing is current Whether the duration of the page data of type of service is more than the operation for setting duration, until the page data of all types of service is completed Processing.
Optionally, fork-join model realization of this method based on java asynchronous thread.By page data according to service class The process that type distributes to the progress parallel processing of at least two threads may is that in fork node, by page data according to service class Type distributes at least two threads and carries out parallel processing.Visitor is sent to after the page data to be shown of multiple business type is polymerize The process at family end may is that in join node, be sent to client after the page data to be shown of multiple business type is polymerize.
The technical solution of the present embodiment obtains page data according to the page request that client is sent first, then by page Face data according to type of service distribute at least two threads carry out parallel processing, obtain multiple business type it is corresponding to It shows page data, client is sent to after finally polymerizeing the page data to be shown of multiple business type, so that client Page data is shown in corresponding page area according to type of service.Page data provided in an embodiment of the present invention Page data is distributed according to type of service at least two threads and carries out parallel processing, page number can be improved by processing method According to the speed of processing, to save the time of page data processing, the efficiency that the page is shown is improved.
Embodiment two
Fig. 4 is a kind of flow chart of the display methods of page data provided by Embodiment 2 of the present invention, as shown in figure 4, should Method includes the following steps:
Step 210, the page request of loading page is sent to server, so that server obtains page according to page request Face data, and page data is distributed at least two threads according to type of service and carries out parallel processing, obtain the page to be shown Data.
Wherein, the page request of loading page can be generates when detecting that user triggers the operation of loading page. Such as: after user opens certain APP, the page request of load APP homepage will be triggered.Specifically, after generating page request, by this Page request is sent to the server where APP, so that server obtains page data according to page request.
Step 220, the page data to be shown that server returns is received.
Wherein, page data to be shown includes multiple business type.It include multiple moulds in customer terminal webpage in the present embodiment Block, each module are responsible for loading a kind of page data of type of service.
Step 230, page data to be shown is distributed to corresponding module according to type of service.
In the present embodiment, each module of the customer terminal webpage type of service of page data, client registered in advance exist After receiving page data to be shown, page data is distributed according to the type of service of each Module registers.
Step 240, the page data to be shown that each module loading receives is controlled, so that page data to be shown is in module The page area at place is shown.
Specifically, client control module loads page data after each module receives page data to be shown, So that page data is shown in the page area where module.
The page request of loading page is sent to server by the technical solution of the present embodiment;So that server is according to page Face request page data, and page data is distributed at least two threads according to type of service and carries out parallel processing, it obtains Obtain page data to be shown;Receive the page data to be shown that server returns;Wherein, page data to be shown includes a variety of industry Service type;Page data to be shown is distributed to corresponding module according to type of service;Control that each module loading receives to Page data is shown, so that page data to be shown is shown in the page area where module.Server is to page data The efficiency that the page is shown can be improved in parallel processing
Embodiment three
Fig. 5 is a kind of structural schematic diagram of the processing unit for page data that the embodiment of the present invention three provides.Such as Fig. 5 institute Show, which includes: that page data obtains module 510, and page data to be shown obtains module 520 and page data to be shown hair Send module 530.
Page data obtains module 510, and the page request for being sent according to client obtains page data;Wherein, page Face data includes multiple business type;
Page data to be shown obtains module 520, for page data to be distributed at least two lines according to type of service Cheng Jinhang parallel processing obtains the corresponding page data to be shown of multiple business type;
Page data sending module 530 to be shown, for being sent out after polymerizeing the page data to be shown of multiple business type It send to client, so that page data is shown in corresponding page area by client according to type of service.
Optionally, page data to be shown obtains module 520, is also used to:
For current thread, judge to handle whether the duration of the page data of present type of service is more than setting duration;
If being more than, stop the page data for handling present type of service, and present type of service pair is obtained from caching The history page data answered, as the corresponding page data to be shown of present type of service.
Optionally, page data to be shown obtains module 520, is also used to:
Determine that the page data of present type of service completes the first quantity of processing;
The history page data of corresponding second quantity of present type of service are obtained from caching according to the first quantity;
The page data of completion processing of first quantity and the history page data of the second quantity are determined as current business The corresponding page data to be shown of type.
Optionally, further includes: page data sending module is used for:
The page data of unappropriated type of service is sent to current thread to handle;
It returns and executes whether the duration for the page data for judging to handle present type of service for current thread is more than setting The operation of duration, until the page data completion of all types of service is handled.
Optionally, page data to be shown obtains module 520, is also used to:
For current thread, at least one of following processing is executed according to page data of the setting rule to present type of service Operation: data conversion, filtering and sequence.
Example IV
Fig. 6 is a kind of structural schematic diagram of the display device for page data that the embodiment of the present invention three provides.Such as Fig. 6 institute Show, which includes: page request sending module 610, page data receiving module 620 to be shown, page data to be shown point Send out module 630 and data disaply moudle 640.
Page request sending module 610, for the page request of loading page to be sent to server;So that the service Device obtains page data according to the page request, and the page data is distributed at least two threads according to type of service Parallel processing is carried out, page data to be shown is obtained;
Page data receiving module 620 to be shown, for receiving the page data to be shown of server return;Wherein, institute Stating page data to be shown includes multiple business type;
Page data distribution module 630 to be shown, for the page data to be shown to be distributed to according to type of service Corresponding module;
Data disaply moudle 640, the page data to be shown received for controlling each module loading, so that page to be shown Face data is shown in the page area where module.
Method provided by the executable aforementioned all embodiments of the present invention of above-mentioned apparatus, it is corresponding to have the execution above method Functional module and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the aforementioned all implementations of the present invention Method provided by example.
Embodiment five
Fig. 7 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention five provides.Fig. 7, which is shown, to be suitable for being used to Realize the block diagram of the computer equipment 312 of embodiment of the present invention.The computer equipment 312 that Fig. 7 is shown is only an example, Should not function to the embodiment of the present invention and use scope bring any restrictions.Equipment 312 is typically the processing of page data Or the calculating equipment of the display function of page data.
As shown in fig. 7, computer equipment 312 is showed in the form of universal computing device.The component of computer equipment 312 can To include but is not limited to: one or more processor 316, storage device 328 connect different system components (including storage dress Set 328 and processor 316) bus 318.
Bus 318 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (Industry Standard Architecture, ISA) bus, microchannel architecture (Micro Channel Architecture, MCA) bus, enhancing Type isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local Bus and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Computer equipment 312 typically comprises a variety of computer system readable media.These media can be it is any can The usable medium accessed by computer equipment 312, including volatile and non-volatile media, moveable and immovable Jie Matter.
Storage device 328 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (Random Access Memory, RAM) 330 and/or cache memory 332.Computer equipment 312 can be into One step includes other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, it deposits Storage system 334 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 7 do not show, commonly referred to as " hard drive Device ").Although being not shown in Fig. 7, the disk for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided and driven Dynamic device, and to removable anonvolatile optical disk (such as CD-ROM (Compact Disc-Read Only Memory, CD- ROM), digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driver can pass through one or more data media interfaces and bus 318 It is connected.Storage device 328 may include at least one program product, which has one group of (for example, at least one) program Module, these program modules are configured to perform the function of various embodiments of the present invention.
Program 336 with one group of (at least one) program module 326, can store in such as storage device 328, this The program module 326 of sample includes but is not limited to operating system, one or more application program, other program modules and program It may include the realization of network environment in data, each of these examples or certain combination.Program module 326 usually executes Function and/or method in embodiment described in the invention.
Computer equipment 312 can also with one or more external equipments 314 (such as keyboard, sensing equipment, camera, Display 324 etc.) communication, the equipment interacted with the computer equipment 312 communication can be also enabled a user to one or more, And/or with any equipment (such as net that the computer equipment 312 is communicated with one or more of the other calculating equipment Card, modem etc.) communication.This communication can be carried out by input/output (I/O) interface 322.Also, computer Equipment 312 can also pass through network adapter 320 and one or more network (such as local area network (Local Area Network, LAN), wide area network Wide Area Network, WAN) and/or public network, such as internet) communication.As schemed Show, network adapter 320 is communicated by bus 318 with other modules of computer equipment 312.Although should be understood that in figure not It shows, other hardware and/or software module can be used in conjunction with computer equipment 312, including but not limited to: microcode, equipment Driver, redundant processing unit, external disk drive array, disk array (Redundant Arrays of Independent Disks, RAID) system, tape drive and data backup storage system etc..
The program that processor 316 is stored in storage device 328 by operation, thereby executing various function application and number According to processing, such as realize the processing of page data or the display methods of page data provided by the above embodiment of the present invention.
Embodiment six
The embodiment of the present invention nine additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should The processing of the page data as provided by the embodiment of the present invention or the display side of page data are realized when program is executed by processor Method.
Certainly, a kind of computer readable storage medium provided by the embodiment of the present invention, the computer program stored thereon The method operation being not limited to the described above, can also be performed processing or the page of page data provided by any embodiment of the invention Relevant operation in the display methods of face data.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (11)

1. a kind of processing method of page data characterized by comprising
Page data is obtained according to the page request that client is sent;Wherein, the page data includes multiple business type;
The page data is distributed at least two threads according to type of service and carries out parallel processing, obtains multiple business type Corresponding page data to be shown;
It is sent to the client after the page data to be shown of multiple business type is polymerize, so that the client is according to industry Page data is shown in corresponding page area by service type.
2. the method according to claim 1, wherein the page data is distributed at least according to type of service Two threads carry out parallel processing, obtain the corresponding page data to be shown of multiple business type, comprising:
For current thread, judge to handle whether the duration of the page data of present type of service is more than setting duration;
If being more than, stop the page data for handling present type of service, and the present type of service pair is obtained from caching The history page data answered, as the corresponding page data to be shown of present type of service.
3. according to the method described in claim 2, it is characterized in that, obtaining that the present type of service is corresponding to be gone through from caching History page data, as the corresponding page data to be shown of present type of service, comprising:
Determine that the page data of the present type of service completes the first quantity of processing;
The history page data of corresponding second quantity of the present type of service are obtained from caching according to first quantity;
The page data of completion processing of first quantity and the history page data of the second quantity are determined as current business The corresponding page data to be shown of type.
4. according to the method described in claim 2, it is characterized in that, stop processing present type of service page data it Afterwards, further includes:
The page data of unappropriated type of service is sent to the current thread to handle;
It returns and executes whether the duration for the page data for judging to handle present type of service for current thread is more than setting duration Operation, until all types of service page data completion handle.
5. the method according to claim 1, wherein the page data is sent at least according to type of service Parallel processing is carried out in two threads, comprising:
For current thread, at least one of following processing is executed according to page data of the setting rule to present type of service and is grasped Make: data conversion, filtering and sequence.
6. the method according to claim 1, wherein fork-join of the method based on java asynchronous thread Model realization;
The page data is distributed at least two threads according to type of service and carries out parallel processing, comprising:
In fork node, the page data is distributed at least two threads according to type of service and carries out parallel processing;
The client is sent to after the page data to be shown of multiple business type is polymerize, comprising:
In join node, the client is sent to after the page data to be shown of multiple business type is polymerize.
7. a kind of display methods of page data characterized by comprising
The page request of loading page is sent to server;So that the server obtains page number according to the page request According to, and the page data is distributed at least two threads according to type of service and carries out parallel processing, obtain the page to be shown Data;
Receive the page data to be shown that server returns;Wherein, the page data to be shown includes multiple business type;
The page data to be shown is distributed to corresponding module according to type of service;
The page data to be shown that each module loading receives is controlled, so that page data to be shown is in the page pool where module Domain is shown.
8. a kind of processing unit of page data characterized by comprising
Page data obtains module, and the page request for being sent according to client obtains page data;Wherein, the page number According to including multiple business type;
Page data to be shown obtains module, for by the page data according to type of service distribute at least two threads into Row parallel processing obtains the corresponding page data to be shown of multiple business type;
Page data sending module to be shown, it is described for being sent to after polymerizeing the page data to be shown of multiple business type Client, so that page data is shown in corresponding page area by the client according to type of service.
9. a kind of display device of page data characterized by comprising
Page request sending module, for the page request of loading page to be sent to server;So that the server according to The page request obtains page data, and the page data is distributed at least two threads according to type of service and is carried out simultaneously Row processing, obtains page data to be shown;
Page data receiving module to be shown, for receiving the page data to be shown of server return;Wherein, described to be shown Page data includes multiple business type;
Page data distribution module to be shown, for the page data to be shown to be distributed to corresponding mould according to type of service Block;
Data disaply moudle, the page data to be shown received for controlling each module loading, so that page data to be shown It is shown in the page area where module.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes such as the page as claimed in any one of claims 1 to 6 when executing described program The display methods of the processing method of data or page data as claimed in claim 7.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Processing method or the page as claimed in claim 7 such as page data as claimed in any one of claims 1 to 6 are realized when execution The display methods of data.
CN201910641725.1A 2019-07-16 2019-07-16 Processing method, display methods, device, equipment and the storage medium of page data Pending CN110347493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910641725.1A CN110347493A (en) 2019-07-16 2019-07-16 Processing method, display methods, device, equipment and the storage medium of page data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910641725.1A CN110347493A (en) 2019-07-16 2019-07-16 Processing method, display methods, device, equipment and the storage medium of page data

Publications (1)

Publication Number Publication Date
CN110347493A true CN110347493A (en) 2019-10-18

Family

ID=68176605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910641725.1A Pending CN110347493A (en) 2019-07-16 2019-07-16 Processing method, display methods, device, equipment and the storage medium of page data

Country Status (1)

Country Link
CN (1) CN110347493A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930496A (en) * 2019-11-19 2020-03-27 北京达佳互联信息技术有限公司 View drawing method and device, electronic equipment and storage medium
CN110955445A (en) * 2019-12-16 2020-04-03 平安国际智慧城市科技股份有限公司 Personal information updating method and device based on quick application and computer equipment
CN110990746A (en) * 2019-12-06 2020-04-10 北京同邦卓益科技有限公司 Page loading method, device, system, storage medium and electronic equipment
CN111240769A (en) * 2020-01-02 2020-06-05 广州虎牙科技有限公司 Page starting method, device, equipment and storage medium
CN111666493A (en) * 2020-04-30 2020-09-15 平安科技(深圳)有限公司 Page data generation method and device, computer equipment and storage medium
CN112667180A (en) * 2020-12-29 2021-04-16 百果园技术(新加坡)有限公司 Business data display method and device, computer equipment and storage medium
CN114519158A (en) * 2022-01-11 2022-05-20 北京中交兴路信息科技有限公司 Page display method and device, storage medium and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087664A (en) * 2011-01-27 2011-06-08 深圳市五巨科技有限公司 Optimizing method of mobile terminal access network, system and mobile terminal
CN103618926A (en) * 2013-12-09 2014-03-05 乐视网信息技术(北京)股份有限公司 Method and device for controlling displaying application webpage of intelligent television
CN106095506A (en) * 2016-06-14 2016-11-09 乐视控股(北京)有限公司 A kind of page loading method and device
CN106886545A (en) * 2016-06-08 2017-06-23 阿里巴巴集团控股有限公司 The caching method and device of page display method, page resource
CN107451181A (en) * 2017-06-14 2017-12-08 北京小度信息科技有限公司 Page rendering method and apparatus
US20180322605A1 (en) * 2017-05-04 2018-11-08 Facebook, Inc. Asynchronous ui framework

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087664A (en) * 2011-01-27 2011-06-08 深圳市五巨科技有限公司 Optimizing method of mobile terminal access network, system and mobile terminal
CN103618926A (en) * 2013-12-09 2014-03-05 乐视网信息技术(北京)股份有限公司 Method and device for controlling displaying application webpage of intelligent television
CN106886545A (en) * 2016-06-08 2017-06-23 阿里巴巴集团控股有限公司 The caching method and device of page display method, page resource
CN106095506A (en) * 2016-06-14 2016-11-09 乐视控股(北京)有限公司 A kind of page loading method and device
US20180322605A1 (en) * 2017-05-04 2018-11-08 Facebook, Inc. Asynchronous ui framework
CN107451181A (en) * 2017-06-14 2017-12-08 北京小度信息科技有限公司 Page rendering method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘其成: "《并行计算机与程序设计》", 30 June 2014 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930496A (en) * 2019-11-19 2020-03-27 北京达佳互联信息技术有限公司 View drawing method and device, electronic equipment and storage medium
CN110930496B (en) * 2019-11-19 2021-01-26 北京达佳互联信息技术有限公司 View drawing method and device, electronic equipment and storage medium
CN110990746A (en) * 2019-12-06 2020-04-10 北京同邦卓益科技有限公司 Page loading method, device, system, storage medium and electronic equipment
CN110955445A (en) * 2019-12-16 2020-04-03 平安国际智慧城市科技股份有限公司 Personal information updating method and device based on quick application and computer equipment
CN110955445B (en) * 2019-12-16 2023-04-25 深圳赛安特技术服务有限公司 Personal information updating method and device based on quick application and computer equipment
CN111240769A (en) * 2020-01-02 2020-06-05 广州虎牙科技有限公司 Page starting method, device, equipment and storage medium
CN111666493A (en) * 2020-04-30 2020-09-15 平安科技(深圳)有限公司 Page data generation method and device, computer equipment and storage medium
CN112667180A (en) * 2020-12-29 2021-04-16 百果园技术(新加坡)有限公司 Business data display method and device, computer equipment and storage medium
CN114519158A (en) * 2022-01-11 2022-05-20 北京中交兴路信息科技有限公司 Page display method and device, storage medium and terminal
CN114519158B (en) * 2022-01-11 2022-11-25 北京中交兴路信息科技有限公司 Page display method and device, storage medium and terminal

Similar Documents

Publication Publication Date Title
CN110347493A (en) Processing method, display methods, device, equipment and the storage medium of page data
CN104123184B (en) A kind of method and system for being used to distribute resource for the task in building process
US9501318B2 (en) Scheduling and execution of tasks based on resource availability
CN105979007A (en) Acceleration resource processing method and device and network function virtualization system
US10706530B2 (en) Object detection
CN110417879A (en) A kind of message treatment method, device, equipment and storage medium
CN109348237A (en) A kind of direct broadcasting room management method, device, server and storage medium
CN107423055A (en) Method, apparatus, equipment and the storage medium of adaptive terminal device resolution
CN108933695B (en) Method and apparatus for processing information
CN109033814A (en) intelligent contract triggering method, device, equipment and storage medium
CN109634761A (en) A kind of system mode circulation method, apparatus, computer equipment and storage medium
CN110428319A (en) A kind of comparing platform, method, equipment and storage medium
CN109726119A (en) Test scene creation method, application method, device, client and server
CN109542864A (en) A kind of resource storage method, resource downloading method, system, equipment and medium
US10839036B2 (en) Web browser having improved navigational functionality
CN109522429B (en) Method and apparatus for generating information
WO2023071566A1 (en) Data processing method and apparatus, computer device, computer-readable storage medium, and computer program product
US10642966B2 (en) Passwords defined using sequences of images
CN111232727A (en) Printed file dispatching method and dispatching robot
CN107609852B (en) Method and apparatus for processing payment requests
US10628840B2 (en) Using run-time and historical customer profiling and analytics to determine and score customer adoption levels of platform technologies
CN108399128A (en) A kind of generation method of user data, device, server and storage medium
US20180075466A1 (en) Standardizing customer and test data and information collection for run time and historical profiling environments and workload comparisons
CN111262727B (en) Service capacity expansion method, device, equipment and storage medium
CN113448730A (en) Service processing method and device, computer equipment and 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