CN111831352A - Operation method and device based on function preloading environment and computer equipment - Google Patents

Operation method and device based on function preloading environment and computer equipment Download PDF

Info

Publication number
CN111831352A
CN111831352A CN202010592342.2A CN202010592342A CN111831352A CN 111831352 A CN111831352 A CN 111831352A CN 202010592342 A CN202010592342 A CN 202010592342A CN 111831352 A CN111831352 A CN 111831352A
Authority
CN
China
Prior art keywords
function
public
computer
transfer server
designated
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
CN202010592342.2A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202010592342.2A priority Critical patent/CN111831352A/en
Publication of CN111831352A publication Critical patent/CN111831352A/en
Pending legal-status Critical Current

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
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The application discloses an operation method based on a function preloading environment, which comprises the following steps: judging whether a call instruction of an appointed operation end is received, wherein the call instruction comprises operation task information of the appointed operation end, the appointed operation end is any one of all operation ends connected with a transfer server, and the transfer server comprises a function preloading environment distribution operation resource; if yes, judging whether the operation task information comprises a public operation part for starting the computer cluster; if yes, controlling the transfer servers arranged in front of all the operation ends, and distributing the public operation part to a computer cluster controlled by the transfer servers according to the operation task information of the specified operation end; judging whether the transfer server sends a signal feedback that the computer cluster finishes the operation or not; if yes, the control transfer server receives the operation result and returns the operation result to the specified operation terminal. The computer cluster resources are allocated in a centralized manner through the transfer server, reasonable resource allocation is carried out, and the operation efficiency is improved.

Description

Operation method and device based on function preloading environment and computer equipment
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for computing based on a function preloading environment, and a computer device.
Background
With the gradual development of front-end applications, the requirements of front-end developers for user experience are higher and higher, but the execution time of the public javascript is repeatedly accumulated in each execution process of a page, so that the operation time of the running end is too long. At present, a set of scheme capable of distributing system resources does not exist, so that the system resources are distributed more reasonably, a front-end system runs more smoothly, the existing front-end running system cannot realize reasonable resource distribution, and an operation method cannot meet different service requirements.
Disclosure of Invention
The application mainly aims to provide an operation method based on a function preloading environment, and aims to solve the technical problems that a front-end operation system cannot realize reasonable resource distribution, and the operation method cannot meet different service requirements.
The application provides an operation method based on a function preloading environment, which comprises the following steps:
judging whether a call instruction of a designated operation end is received, wherein the call instruction comprises operation task information of the designated operation end, the designated operation end is any one of all operation ends connected with a transfer server, and the transfer server comprises a function preloading environment allocation operation resource;
if yes, judging whether the operation task information comprises a public operation part for starting the computer cluster;
if yes, controlling transfer servers arranged at all running ends in front, and distributing the public operation part to a computer cluster controlled by the transfer servers according to the operation task information of the specified operation end;
judging whether the transfer server sends a signal feedback that the computer cluster finishes the operation or not;
and if so, controlling the transfer server to receive the operation result and returning the operation result to the specified operation terminal.
Preferably, the designated runtime end includes an H5 page of an APP, and before the step of determining whether a call instruction of the designated runtime end is received, the method includes:
acquiring the calling frequency of all functions in the public javascript in the H5 page;
marking the function with calling frequency exceeding the preset frequency as a public function;
packaging and integrating the public functions into deployment resources through a component tool;
and deploying the deployment resources to the APP or the specified server through a deployment script, and initializing the deployment resources to be a function preloading environment in the transit server.
Preferably, the step of packaging and integrating the common functions into the deployment resource through the component tool includes:
calling a code scanning tool to scan function codes of the public functions, wherein the function codes are arranged in a character string mode;
analyzing the occurrence frequency of each character string in the function code, calculating the maximum frequency Nmax and the minimum frequency Nmin, and calculating the average Navg according to the maximum frequency Nmax and the minimum frequency Nmin;
taking the average Navg as a standard, extracting a function with the occurrence frequency being more than or equal to the average Navg as an intermediate function;
converting the grammar of the intermediate function into an ast grammar tree through an ast tool;
and converting the ast syntax tree into corresponding assembly codes by using C language, and integrating the assembly codes into the deployment resources.
Preferably, the step of controlling the relay servers placed in front of all the operation terminals, and distributing the common operation part to the computer cluster controlled by the relay servers according to the operation task information of the specified operation terminal includes:
judging whether the operation task information of the specified operation end needs to call a public function and a functional function at the same time;
if yes, the public operation part is operated to obtain a first operation result by calling a first js execution function corresponding to the public function, and a second operation result obtained by operating a second js execution function corresponding to the function is called in parallel.
Preferably, the step of calculating the common operation part to obtain a first operation result by calling a first js execution function corresponding to the common function, and calling a second js execution function corresponding to the function in parallel to obtain a second operation result includes:
acquiring a plurality of distribution modes for performing distribution operation on the public operation part and each computer in the computer cluster, and the running condition data of each computer in the current computer cluster fed back by the transfer server;
calculating the total running time corresponding to the public operation part by the multiple distribution modes according to the running condition data of each computer;
determining a designated distribution mode with the minimum total running time, wherein the designated distribution mode is included in the plurality of distribution modes, and the designated distribution mode comprises names of computers in a distributed computer cluster and operation contents of the common operation part corresponding to the computers respectively;
and calling the first js execution function operation for operation in parallel by the public function operation part through the transfer server according to the specified distribution mode, and sending the corresponding function operation in the operation of the specified operation end to the second execution function for operation.
Preferably, the operation task information includes an operation logic, and the step of controlling the transfer server to receive the operation result and return the operation result to the designated operation terminal includes:
controlling the transfer server to receive in real time, and calling the operation results respectively returned by the first js execution function by each computer in the computer cluster according to the operation logic;
controlling the transfer server to combine operation results respectively returned by calling the first js execution function by each computer into the first operation result according to the operation logic;
controlling the transfer server to return the first operation result to the appointed operation end;
and merging a second operation result obtained by calling a second js execution function corresponding to the function from the designated running end bearing the H5 page with the first operation result, and displaying the second operation result on the H5 page.
Preferably, the operation end includes a page H5, and after the step of controlling the transit server to receive the operation result and return to the specified operation terminal, the method includes:
acquiring the times of calling the transfer server by each H5 page;
marking the designated H5 page with the largest number of calls;
judging whether an initialization instruction of the specified H5 page is received;
if yes, a specific operation space of the transit server is allocated to serve the specified H5 page.
The application also provides an arithmetic device based on the function preloading environment, which comprises:
the system comprises a first judgment module, a second judgment module and a transfer server, wherein the first judgment module is used for judging whether a call instruction of a designated operation end is received or not, the call instruction comprises operation task information of the designated operation end, the designated operation end is any one of all operation ends connected with the transfer server, and the transfer server comprises a function preloading environment allocation operation resource;
the second judgment module is used for judging whether the operation task information comprises a public operation part for starting the computer cluster or not if a call instruction of a specified operation end is received;
the first control module is used for controlling the transfer servers arranged in front of all the running ends if the operation task information comprises a public operation part for starting the computer cluster, and distributing the public operation part to the computer cluster controlled by the transfer servers according to the operation task information of the specified operation end;
the third judging module is used for judging whether the transfer server sends a signal feedback that the computer cluster finishes the operation or not;
and the second control module is used for controlling the transfer server to receive the operation result and return the operation result to the specified operation terminal if the transfer server sends a signal feedback that the operation of the computer cluster is completed.
The present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method as described above.
The method and the system have the advantages that public functions are packaged and integrated into a single deployment resource through component tools such as webpack or gulp and are deployed to the independent server to form the function preloading environment of the transfer server, computer cluster resources can be centrally allocated through the transfer server to achieve reasonable resource allocation, the execution time in operation of the operation end is reduced to the maximum extent, resources in the computer cluster and resources of the transfer server are reasonably utilized, and the operation efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating a method of operation based on a function preloading environment according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a computing device based on a function preloading environment according to an embodiment of the present application;
fig. 3 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an operation method based on a function preloading environment according to an embodiment of the present application includes:
s1: judging whether a call instruction of a designated operation end is received, wherein the call instruction comprises operation task information of the designated operation end, the designated operation end is any one of all operation ends connected with a transfer server, and the transfer server comprises a function preloading environment allocation operation resource;
s2: if yes, judging whether the operation task information comprises a public operation part for starting the computer cluster;
s3: if yes, controlling transfer servers arranged at all running ends in front, and distributing the public operation part to a computer cluster controlled by the transfer servers according to the operation task information of the specified operation end;
s4: judging whether the transfer server sends a signal feedback that the computer cluster finishes the operation or not;
s5: and if so, controlling the transfer server to receive the operation result and returning the operation result to the specified operation terminal.
In this embodiment, when the operation space is called by the operation end to execute the operation task, a transfer server which is arranged in front of all the operation ends is called first, and then the operation is distributed to the computer cluster of the operation space by the transfer server. The computer cluster can be a side-by-side computer cluster, and the number of computers in the computer cluster can be increased or decreased in a slot mode. Each computer informs the current operation condition of the transit server in the form of a message. After the transfer server obtains the operation condition data of the computer cluster, one or more computers can be automatically distributed to assist in completing the operation. The operation condition data includes data such as CPU occupancy rate and memory temporary usage rate. For example, when the current CPU occupancy rate and the memory utilization rate of a certain computer are greater than a certain preset value, the computer is predicted to be busy, and the transfer server prohibits the computer from continuing to receive new operation tasks. According to the method and the system, the computer cluster resources are allocated in a centralized mode through the transfer server, reasonable resource allocation is carried out, and the operation efficiency is improved. The function preloading environment is added in the transit server, so that the time for executing the operation of the operation end is reduced to the maximum possibility, and the resources in the computer cluster and the resources of the transit server are reasonably utilized. After the computer cluster finishes the operation, the operation result is timely returned to the transfer server, and the transfer server returns to the appointed operation end initiating the operation call.
Further, the step of determining whether a call instruction of the designated runtime end is received before step S1, where the designated runtime end includes a page H5 of APP, includes:
s11: acquiring the calling frequency of all functions in the public javascript in the H5 page;
s12: marking the function with calling frequency exceeding the preset frequency as a public function;
s13: packaging and integrating the public functions into deployment resources through a component tool;
s14: and deploying the deployment resources to the APP or the specified server through a deployment script, and initializing the deployment resources to be a function preloading environment in the transit server.
In this embodiment, the running end includes an H5 page of the APP, the component tool includes webpack or gulp, and the common function is packaged and integrated into a single deployment resource through the component tool such as webpack or gulp and deployed in the transit server. The principle of identifying the common function is that when the frequency of occurrence or calling frequency of a certain function in the current packaging process is extremely high, for example, the called frequency of a function mode in avascript accounts for 80% or more of the total called frequency of javascript compared with the total called frequency of javascript, the part of the function with high occurrence frequency is regarded as the common function. And if the occurrence frequency is more than the preset times, the high frequency is considered, and if the occurrence frequency is more than 3 times, the high frequency is considered. The packaging refers to that the function codes are packaged and integrated into deployment resources such as a function module and the like through a machine, and the function module can be called and operated independently. And then installing and deploying the deployment resource to the APP or the server through the deployment script for initialization to form a function preloading environment in the transit server. The function preloading environment is realized by initializing an independent operation space in the APP or server environment. This function preload environment can be called by the use layer of the lower level. The independent operation space refers to a server or a space with a certain order of magnitude, and precompiled codes or functions are stored in the independent operation space. The public function is a global calling function, so that the APP and the server can call the public function through a global method. The embodiment enables the call space to be independent by adding the function preloading environment, can run at high speed, and has more obvious advantages compared with the method that the functions are packaged in each page respectively, and the local running speed is high when a large amount of data is processed, and the running speed is accelerated. The running space is a dedicated space running environment, and the configuration standard is higher than that of a non-dedicated server.
Further, the step S13 of packaging and integrating the common function into the deployment resource through the component tool includes:
s131: calling a code scanning tool to scan function codes of the public functions, wherein the function codes are arranged in a character string mode;
s132: analyzing the occurrence frequency of each character string in the function code, calculating the maximum frequency Nmax and the minimum frequency Nmin, and calculating the average Navg according to the maximum frequency Nmax and the minimum frequency Nmin;
s133: taking the average Navg as a standard, extracting a function with the occurrence frequency being more than or equal to the average Navg as an intermediate function;
s134: converting the grammar of the intermediate function into an ast grammar tree through an ast tool;
s135: and converting the ast syntax tree into corresponding assembly codes by using C language, and integrating the assembly codes into the deployment resources.
In this embodiment, in the process of packaging and integrating the public functions of javascript in the H5 page into a single deployment resource through a component tool such as webpack or gulp, firstly, a computer code scanning tool is used to arrange codes to be compiled by the public functions in the form of character strings, and then the occurrence frequency of each character string in the coding language of the function codes is analyzed, where the maximum frequency is Nmax and the minimum frequency is Nmin, and the average Navg of the maximum frequency and the minimum frequency is calculated. And then, extracting the intermediate function by taking Navg as a reference standard, and if the occurrence frequency > is the frequency of Navg, extracting the function as an intermediate function. And converting the syntax of the intermediate function into an ast syntax tree through an ast tool. For example { id: { type: and the Identfter, the name, the square and the type, the function Declaratlon and the C language are used for converting the ast syntax tree into corresponding assembly codes to complete the integration process of deploying resources. In the embodiment, the independent deployment resources are directly coded and deployed in the machine language directly identified by each computer, so that the decoding process in each calling process is avoided in the calling and running process, and the processing process is further accelerated.
Further, the step S3 of controlling the relay servers disposed at the front ends of all the operation ends, and distributing the common operation part to the computer cluster controlled by the relay servers according to the operation task information of the specified operation end includes:
s31: judging whether the operation task information of the specified operation end needs to call a public function and a functional function at the same time;
s32: if yes, the public operation part is operated to obtain a first operation result by calling a first js execution function corresponding to the public function, and a second operation result obtained by operating a second js execution function corresponding to the function is called in parallel.
In this embodiment, when a certain H5 page calls for operation, the function of each runtime space can be called separately. The function in the H5 page is a function, and if the function is called, a js function in the execution runtime space carrying the specified runtime end of the H5 page is called. For example, if the common variable is common, where the specific function is an execution method of the calculation data, the call mode is common. The function is called according to the requirement, if the function called currently is a public function, the function is executed through the public js, otherwise, the function is a functional function, namely, the function calling of the running space has independence and does not depend on or interfere with each other.
Further, after the step S21 of determining whether the operation task information of the specified operation end needs to call the common function and the function at the same time, the method includes:
s211: if not, the first js execution function is independently started to operate the public operation part according to the called public function.
In this embodiment, for example, the common function or the function may be called separately, or the common function and the function may be called simultaneously and in parallel, because the servers where the two functions are located are different, the operation is not interfered with each other. Or independently starting the second js execution function to operate according to the called function; or according to the called public function, independently starting the first js execution function to operate the public operation part; or the simultaneous parallel calling can be realized, the diversity of the operation scheme is improved, and the functions of the H5 page are enriched.
Further, the step S22 of computing the common operation part by calling the first js execution function corresponding to the common function to obtain the first computation result, and calling the second js execution function corresponding to the function in parallel to obtain the second computation result, includes:
s221: acquiring a plurality of distribution modes for performing distribution operation on the public operation part and each computer in the computer cluster, and the running condition data of each computer in the current computer cluster fed back by the transfer server;
s222: calculating the total running time corresponding to the public operation part by the multiple distribution modes according to the running condition data of each computer;
s223: determining a designated distribution mode with the minimum total running time, wherein the designated distribution mode is included in the plurality of distribution modes, and the designated distribution mode comprises names of computers in a distributed computer cluster and operation contents of the common operation part corresponding to the computers respectively;
s224: and calling the first js execution function operation for operation in parallel by the public function operation part through the transfer server according to the specified distribution mode, and sending the corresponding function operation in the operation of the specified operation end to the second execution function for operation.
In the embodiment, the common operation part completed in the computer cluster is divided into a plurality of data packets according to the operation logic, and then the first js execution function is sequentially called according to the operation logic to perform relay operation, so that the operation load of each computer is reduced, and the operation smoothness is improved. When the operation logic is parallel, the operation logic can be randomly divided into a plurality of data packets, each computer in the computer cluster is called to operate and operate in parallel, then feedback results corresponding to each data packet are combined on the transfer server and fed back to an appointed operation end, for example, the appointed operation end is an H5 page requesting operation, so that the data processing efficiency is improved. No matter in the operation according to the operation logic or in the parallel random operation, the problem that each data packet is matched with each computer one by one exists, in the embodiment, the reasonable distribution is carried out by calculating the total operation time corresponding to each distribution mode, so that the feedback efficiency is improved, and the user experience is improved. The total running time is obtained by estimating the calculation capacity of a computer executing the calculation on the data packet according to the calculation amount of the data packet, and the correlation between the calculation capacity of the computer and the data such as the CPU occupancy rate, the memory temporary use rate and the like of the current computer can be obtained through a pre-configured correlation table.
Further, the step S5 in which the operation task information includes operation logic, and the step of controlling the transfer server to receive the operation result and return the operation result to the designated operation terminal includes:
s51: controlling the transfer server to receive in real time, and calling the operation results respectively returned by the first js execution function by each computer in the computer cluster according to the operation logic;
s52: controlling the transfer server to combine operation results respectively returned by calling the first js execution function by each computer into the first operation result according to the operation logic;
s53: controlling the transfer server to return the first operation result to the appointed operation end;
s54: and merging a second operation result obtained by calling a second js execution function corresponding to the function from the designated running end bearing the H5 page with the first operation result, and displaying the second operation result on the H5 page.
The relay server in this embodiment monitors the operation state of each computer in real time, and receives the operation results fed back by each computer in the designated distribution mode after the operation is finished, and combines the results to form a first operation result. And combining the results of the common operation part and the functional operation part included in the operation task information of the designated operation end again and returning to the H5 page. And in executing the operation task of the appointed operation end, calculating the number of times of the executed function being called, for example, the function of common.
Further, the step S5, in which the operation terminal includes a page H5, and the step S of controlling the transfer server to receive the operation result and return to the designated operation terminal includes:
s6: acquiring the times of calling the transfer server by each H5 page;
s7: marking the designated H5 page with the largest number of calls;
s8: judging whether an initialization instruction of the specified H5 page is received;
s9: if yes, a specific operation space of the transit server is allocated to serve the specified H5 page.
In this embodiment, the operating space is reasonably allocated according to the number of times that each H5 page calls the transit server. For example, the a page (or a service) is called 15 times, and the B page (or a service) is called 30 times, then the memory or resource of a specific operating space can be allocated when the B page is initialized, so as to fix the service B page, and different resources can be allocated according to the number of calls, and the operating space can be more reasonably used.
Referring to fig. 2, an embodiment of the present application provides a computing device based on a function preloading environment, including:
the system comprises a first judgment module 1, a first processing module and a second judgment module, wherein the first judgment module is used for judging whether a call instruction of a designated operation end is received or not, the call instruction comprises operation task information of the designated operation end, the designated operation end is any one of all operation ends connected with a transfer server, and the transfer server comprises a function preloading environment distribution operation resource;
the second judging module 2 is used for judging whether the operation task information comprises a public operation part for starting a computer cluster or not if a calling instruction of a specified operation end is received;
the first control module 3 is configured to control the transfer servers arranged in front of all the operation ends if the operation task information includes a public operation part for starting the computer cluster, and distribute the public operation part to the computer cluster controlled by the transfer servers according to the operation task information of the specified operation end;
a third judging module 4, configured to judge whether the transit server sends a signal feedback that the computer cluster has completed the operation;
and the second control module 5 is configured to control the transfer server to receive the operation result and return the operation result to the specified operation terminal if the transfer server sends a signal feedback that the operation of the computer cluster is completed.
In this embodiment, when the operation space is called by the operation end to execute the operation task, a transfer server which is arranged in front of all the operation ends is called first, and then the operation is distributed to the computer cluster of the operation space by the transfer server. The computer cluster can be a side-by-side computer cluster, and the number of computers in the computer cluster can be increased or decreased in a slot mode. Each computer informs the current operation condition of the transit server in the form of a message. After the transfer server obtains the operation condition data of the computer cluster, one or more computers can be automatically distributed to assist in completing the operation. The operation condition data includes data such as CPU occupancy rate and memory temporary usage rate. For example, when the current CPU occupancy rate and the memory utilization rate of a certain computer are greater than a certain preset value, the computer is predicted to be busy, and the transfer server prohibits the computer from continuing to receive new operation tasks. According to the method and the system, the computer cluster resources are allocated in a centralized mode through the transfer server, reasonable resource allocation is carried out, and the operation efficiency is improved. The function preloading environment is added in the transit server, so that the time for executing the operation of the operation end is reduced to the maximum possibility, and the resources in the computer cluster and the resources of the transit server are reasonably utilized. After the computer cluster finishes the operation, the operation result is timely returned to the transfer server, and the transfer server returns to the appointed operation end initiating the operation call.
Further, the specified operation end includes H5 page of APP, and the operation device based on function preloading environment includes:
the first acquisition module is used for acquiring the calling frequency of all functions in the public javascript in the H5 page;
the first marking module is used for marking the function with calling frequency exceeding the preset frequency as a public function;
the packaging module is used for packaging the public functions into deployment resources through a component tool;
and the deployment module is used for deploying the deployment resources to the APP or the specified server through a deployment script and initializing the deployment resources into a function preloading environment in the transit server.
In this embodiment, the running end includes an H5 page of the APP, the component tool includes webpack or gulp, and the common function is packaged and integrated into a single deployment resource through the component tool such as webpack or gulp and deployed in the transit server. The principle of identifying the common function is that when the frequency of occurrence or calling frequency of a certain function in the current packaging process is extremely high, for example, the called frequency of a function mode in avascript accounts for 80% or more of the total called frequency of javascript compared with the total called frequency of javascript, the part of the function with high occurrence frequency is regarded as the common function. And if the occurrence frequency is more than the preset times, the high frequency is considered, and if the occurrence frequency is more than 3 times, the high frequency is considered. The packaging refers to that the function codes are packaged and integrated into deployment resources such as a function module and the like through a machine, and the function module can be called and operated independently. And then installing and deploying the deployment resource to the APP or the server through the deployment script for initialization to form a function preloading environment in the transit server. The function preloading environment is realized by initializing an independent operation space in the APP or server environment. This function preload environment can be called by the use layer of the lower level. The independent operation space refers to a server or a space with a certain order of magnitude, and precompiled codes or functions are stored in the independent operation space. The public function is a global calling function, so that the APP and the server can call the public function through a global method. The embodiment enables the call space to be independent by adding the function preloading environment, can run at high speed, and has more obvious advantages compared with the method that the functions are packaged in each page respectively, and the local running speed is high when a large amount of data is processed, and the running speed is accelerated. The running space is a dedicated space running environment, and the configuration standard is higher than that of a non-dedicated server.
Further, the packing module includes:
the first calling unit is used for calling a code scanning tool to scan the function codes of the public functions, wherein the function codes are arranged in a character string form;
the analysis unit is used for analyzing the occurrence frequency of each character string in the function code, calculating the maximum frequency Nmax and the minimum frequency Nmin, and calculating the average Navg according to the maximum frequency Nmax and the minimum frequency Nmin;
an extraction unit for extracting a function, the number of occurrences of which is greater than or equal to the mean Navg, as an intermediate function, with the mean Navg as a criterion;
the conversion unit is used for converting the grammar of the intermediate function into an ast grammar tree through an ast tool;
and the integration unit is used for converting the ast syntax tree into a corresponding assembly code by using C language and integrating the assembly code into the deployment resource.
In this embodiment, in the process of packaging and integrating the public functions of javascript in the H5 page into a single deployment resource through a component tool such as webpack or gulp, firstly, a computer code scanning tool is used to arrange codes to be compiled by the public functions in the form of character strings, and then the occurrence frequency of each character string in the coding language of the function codes is analyzed, where the maximum frequency is Nmax and the minimum frequency is Nmin, and the average Navg of the maximum frequency and the minimum frequency is calculated. And then, extracting the intermediate function by taking Navg as a reference standard, and if the occurrence frequency > is the frequency of Navg, extracting the function as an intermediate function. And converting the syntax of the intermediate function into an ast syntax tree through an ast tool. For example { id: { type: and the Identfter, the name, the square and the type, the function Declaratlon and the C language are used for converting the ast syntax tree into corresponding assembly codes to complete the integration process of deploying resources. In the embodiment, the independent deployment resources are directly coded and deployed in the machine language directly identified by each computer, so that the decoding process in each calling process is avoided in the calling and running process, and the processing process is further accelerated.
Further, the first control module 3 includes:
the first judgment unit is used for judging whether the operation task information of the specified operation end needs to call a public function and a functional function at the same time;
and if so, the second calling unit is used for calculating the public operation part to obtain a first operation result by calling the first js execution function corresponding to the public function, and calling a second operation result obtained by calculating the second js execution function corresponding to the functional function in parallel.
In this embodiment, when a certain H5 page calls for operation, the function of each runtime space can be called separately. The function in the H5 page is a function, and if the function is called, a js function in the execution runtime space carrying the specified runtime end of the H5 page is called. For example, if the common variable is common, where the specific function is an execution method of the calculation data, the call mode is common. The function is called according to the requirement, if the function called currently is a public function, the function is executed through the public js, otherwise, the function is a functional function, namely, the function calling of the running space has independence and does not depend on or interfere with each other.
Further, the first control module 3 includes:
and if not, independently starting the first js execution function to operate the public operation part according to the called public function.
In this embodiment, for example, the common function or the function may be called separately, or the common function and the function may be called simultaneously and in parallel, because the servers where the two functions are located are different, the operation is not interfered with each other. Or independently starting the second js execution function to operate according to the called function; or according to the called public function, independently starting the first js execution function to operate the public operation part; or the simultaneous parallel calling can be realized, the diversity of the operation scheme is improved, and the functions of the H5 page are enriched.
Further, the second calling unit includes:
an obtaining subunit, configured to obtain multiple distribution modes for performing distribution operations on the common operation part and each computer in the computer cluster, and operation condition data of each computer in the current computer cluster, which is fed back by the transfer server;
the calculating subunit is used for calculating the total running time corresponding to the public operation part by the multiple distribution modes according to the running condition data of each computer;
the determining subunit is configured to determine a designated distribution mode with the minimum total operating time, where the designated distribution mode is included in the multiple distribution modes, and the designated distribution mode includes names of computers in a distributed computer cluster and operation contents of the common operation part corresponding to each computer;
and the calling subunit is used for calling the public function operation part to parallelly call the first js execution function operation for operation through the transfer server according to the specified distribution mode, and sending the corresponding function operation in the operation of the specified operation end to the second execution function for operation.
In the embodiment, the common operation part completed in the computer cluster is divided into a plurality of data packets according to the operation logic, and then the first js execution function is sequentially called according to the operation logic to perform relay operation, so that the operation load of each computer is reduced, and the operation smoothness is improved. When the operation logic is parallel, the operation logic can be randomly divided into a plurality of data packets, each computer in the computer cluster is called to operate and operate in parallel, then feedback results corresponding to each data packet are combined on the transfer server and fed back to an appointed operation end, for example, the appointed operation end is an H5 page requesting operation, so that the data processing efficiency is improved. No matter in the operation according to the operation logic or in the parallel random operation, the problem that each data packet is matched with each computer one by one exists, in the embodiment, the reasonable distribution is carried out by calculating the total operation time corresponding to each distribution mode, so that the feedback efficiency is improved, and the user experience is improved. The total running time is obtained by estimating the calculation capacity of a computer executing the calculation on the data packet according to the calculation amount of the data packet, and the correlation between the calculation capacity of the computer and the data such as the CPU occupancy rate, the memory temporary use rate and the like of the current computer can be obtained through a pre-configured correlation table.
Further, the operation task information includes an operation logic, and the second control module 5 includes:
the first control unit is used for controlling the transfer server to receive the operation results respectively returned by the first js execution function called by each computer in the computer cluster according to the operation logic;
the second control unit is used for controlling the transfer server to call the operation results respectively returned by the first js execution functions called by the computers, and the operation results are combined into the first operation result according to the operation logic;
a third control unit, configured to control the transfer server to return the first operation result to the specified operation end;
and the merging unit is used for merging a second operation result obtained by calling a second js execution function corresponding to the function from the designated running end bearing the H5 page with the first operation result and displaying the merged result on the H5 page.
The relay server in this embodiment monitors the operation state of each computer in real time, and receives the operation results fed back by each computer in the designated distribution mode after the operation is finished, and combines the results to form a first operation result. And combining the results of the common operation part and the functional operation part included in the operation task information of the designated operation end again and returning to the H5 page. And in executing the operation task of the appointed operation end, calculating the number of times of the executed function being called, for example, the function of common.
Further, the operation end comprises an H5 page, and the operation device based on the function preloading environment comprises:
the second obtaining module is used for obtaining the times of calling the transfer server by each H5 page;
the second marking module is used for marking the designated H5 page with the maximum calling times;
a fourth judging module, configured to judge whether an initialization instruction of the specified H5 page is received;
and the distribution module is used for distributing the specific operation space of the transit server to serve the designated H5 page if the specific operation space is the designated H5 page.
In this embodiment, the operating space is reasonably allocated according to the number of times that each H5 page calls the transit server. For example, the a page (or a service) is called 15 times, and the B page (or a service) is called 30 times, then the memory or resource of a specific operating space can be allocated when the B page is initialized, so as to fix the service B page, and different resources can be allocated according to the number of calls, and the operating space can be more reasonably used.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing all data required by the operation process based on the function preloading environment. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of operation based on a function preloading environment.
The processor executes the operation method based on the function preloading environment, and comprises the following steps: judging whether a call instruction of a designated operation end is received, wherein the call instruction comprises operation task information of the designated operation end, the designated operation end is any one of all operation ends connected with a transfer server, and the transfer server comprises a function preloading environment allocation operation resource; if yes, judging whether the operation task information comprises a public operation part for starting the computer cluster; if yes, controlling transfer servers arranged at all running ends in front, and distributing the public operation part to a computer cluster controlled by the transfer servers according to the operation task information of the specified operation end; judging whether the transfer server sends a signal feedback that the computer cluster finishes the operation or not; and if so, controlling the transfer server to receive the operation result and returning the operation result to the specified operation terminal.
According to the computer equipment, the public functions are packaged and integrated into a single deployment resource through component tools such as webpack or gulp and the like and are deployed into the independent server to form the function preloading environment of the transfer server, the computer cluster resources can be centrally allocated through the transfer server to perform reasonable resource allocation, the time for executing the operation of the operation end is reduced to the maximum extent, the resources in the computer cluster and the resources of the transfer server are reasonably utilized, and the operation efficiency is improved.
In an embodiment, the step of determining whether the specified execution end receives the call instruction of the specified execution end includes: acquiring the calling frequency of all functions in the public javascript in the H5 page; marking the function with calling frequency exceeding the preset frequency as a public function; packaging and integrating the public functions into deployment resources through a component tool; and deploying the deployment resources to the APP or the specified server through a deployment script, and initializing the deployment resources to be a function preloading environment in the transit server.
In one embodiment, the step of packaging and integrating the common function into the deployment resource through the component tool by the processor includes: calling a code scanning tool to scan function codes of the public functions, wherein the function codes are arranged in a character string mode; analyzing the occurrence frequency of each character string in the function code, calculating the maximum frequency Nmax and the minimum frequency Nmin, and calculating the average Navg according to the maximum frequency Nmax and the minimum frequency Nmin; taking the average Navg as a standard, extracting a function with the occurrence frequency being more than or equal to the average Navg as an intermediate function; converting the grammar of the intermediate function into an ast grammar tree through an ast tool; and converting the ast syntax tree into corresponding assembly codes by using C language, and integrating the assembly codes into the deployment resources.
In one embodiment, the step of the processor controlling the transit servers disposed at all the operation ends and distributing the common operation part to the computer cluster controlled by the transit servers according to the operation task information of the specified operation end includes: judging whether the operation task information of the specified operation end needs to call a public function and a functional function at the same time; if yes, the public operation part is operated to obtain a first operation result by calling a first js execution function corresponding to the public function, and a second operation result obtained by operating a second js execution function corresponding to the function is called in parallel.
In one embodiment, the step of the processor operating the common operation portion to obtain a first operation result by calling a first js execution function corresponding to the common function, and concurrently calling a second operation result obtained by operating a second js execution function corresponding to the function includes: acquiring a plurality of distribution modes for performing distribution operation on the public operation part and each computer in the computer cluster, and the running condition data of each computer in the current computer cluster fed back by the transfer server; calculating the total running time corresponding to the public operation part by the multiple distribution modes according to the running condition data of each computer; determining a designated distribution mode with the minimum total running time, wherein the designated distribution mode is included in the plurality of distribution modes, and the designated distribution mode comprises names of computers in a distributed computer cluster and operation contents of the common operation part corresponding to the computers respectively; and calling the first js execution function operation for operation in parallel by the public function operation part through the transfer server according to the specified distribution mode, and sending the corresponding function operation in the operation of the specified operation end to the second execution function for operation.
In one embodiment, the step of controlling the transit server to receive the operation result and return the operation result to the designated operation terminal by the processor includes: controlling the transfer server to receive in real time, and calling the operation results respectively returned by the first js execution function by each computer in the computer cluster according to the operation logic; controlling the transfer server to combine operation results respectively returned by calling the first js execution function by each computer into the first operation result according to the operation logic; controlling the transfer server to return the first operation result to the appointed operation end; and merging a second operation result obtained by calling a second js execution function corresponding to the function from the designated running end bearing the H5 page with the first operation result, and displaying the second operation result on the H5 page.
In one embodiment, the step of the processor controlling the transit server to receive the operation result and return to the designated operation terminal includes: acquiring the times of calling the transfer server by each H5 page; marking the designated H5 page with the largest number of calls; judging whether an initialization instruction of the specified H5 page is received; if yes, a specific operation space of the transit server is allocated to serve the specified H5 page.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is only a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects may be applied.
The present application also provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing a method of operation of a function preloading environment, comprising: judging whether a call instruction of a designated operation end is received, wherein the call instruction comprises operation task information of the designated operation end, the designated operation end is any one of all operation ends connected with a transfer server, and the transfer server comprises a function preloading environment allocation operation resource; if yes, judging whether the operation task information comprises a public operation part for starting the computer cluster; if yes, controlling transfer servers arranged at all running ends in front, and distributing the public operation part to a computer cluster controlled by the transfer servers according to the operation task information of the specified operation end; judging whether the transfer server sends a signal feedback that the computer cluster finishes the operation or not; and if so, controlling the transfer server to receive the operation result and returning the operation result to the specified operation terminal.
According to the computer readable storage medium, the public functions are packaged and integrated into a single deployment resource through component tools such as webpack or gulp and the like and are deployed to the independent server to form the function preloading environment of the transit server, the computer cluster resources can be centrally allocated through the transit server to perform reasonable resource allocation, the time for executing the operation of the operation end is reduced to the maximum extent, the resources in the computer cluster and the resources of the transit server are reasonably utilized, and the operation efficiency is improved.
In an embodiment, the step of determining whether the specified execution end receives the call instruction of the specified execution end includes: acquiring the calling frequency of all functions in the public javascript in the H5 page; marking the function with calling frequency exceeding the preset frequency as a public function; packaging and integrating the public functions into deployment resources through a component tool; and deploying the deployment resources to the APP or the specified server through a deployment script, and initializing the deployment resources to be a function preloading environment in the transit server.
In one embodiment, the step of packaging and integrating the common function into the deployment resource through the component tool by the processor includes: calling a code scanning tool to scan function codes of the public functions, wherein the function codes are arranged in a character string mode; analyzing the occurrence frequency of each character string in the function code, calculating the maximum frequency Nmax and the minimum frequency Nmin, and calculating the average Navg according to the maximum frequency Nmax and the minimum frequency Nmin; taking the average Navg as a standard, extracting a function with the occurrence frequency being more than or equal to the average Navg as an intermediate function; converting the grammar of the intermediate function into an ast grammar tree through an ast tool; and converting the ast syntax tree into corresponding assembly codes by using C language, and integrating the assembly codes into the deployment resources.
In one embodiment, the step of the processor controlling the transit servers disposed at all the operation ends and distributing the common operation part to the computer cluster controlled by the transit servers according to the operation task information of the specified operation end includes: judging whether the operation task information of the specified operation end needs to call a public function and a functional function at the same time; if yes, the public operation part is operated to obtain a first operation result by calling a first js execution function corresponding to the public function, and a second operation result obtained by operating a second js execution function corresponding to the function is called in parallel.
In one embodiment, the step of the processor operating the common operation portion to obtain a first operation result by calling a first js execution function corresponding to the common function, and concurrently calling a second operation result obtained by operating a second js execution function corresponding to the function includes: acquiring a plurality of distribution modes for performing distribution operation on the public operation part and each computer in the computer cluster, and the running condition data of each computer in the current computer cluster fed back by the transfer server; calculating the total running time corresponding to the public operation part by the multiple distribution modes according to the running condition data of each computer; determining a designated distribution mode with the minimum total running time, wherein the designated distribution mode is included in the plurality of distribution modes, and the designated distribution mode comprises names of computers in a distributed computer cluster and operation contents of the common operation part corresponding to the computers respectively; and calling the first js execution function operation for operation in parallel by the public function operation part through the transfer server according to the specified distribution mode, and sending the corresponding function operation in the operation of the specified operation end to the second execution function for operation.
In one embodiment, the step of controlling the transit server to receive the operation result and return the operation result to the designated operation terminal by the processor includes: controlling the transfer server to receive in real time, and calling the operation results respectively returned by the first js execution function by each computer in the computer cluster according to the operation logic; controlling the transfer server to combine operation results respectively returned by calling the first js execution function by each computer into the first operation result according to the operation logic; controlling the transfer server to return the first operation result to the appointed operation end; and merging a second operation result obtained by calling a second js execution function corresponding to the function from the designated running end bearing the H5 page with the first operation result, and displaying the second operation result on the H5 page.
In one embodiment, the step of the processor controlling the transit server to receive the operation result and return to the designated operation terminal includes: acquiring the times of calling the transfer server by each H5 page; marking the designated H5 page with the largest number of calls; judging whether an initialization instruction of the specified H5 page is received; if yes, a specific operation space of the transit server is allocated to serve the specified H5 page.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. An operation method based on a function preloading environment is characterized by comprising the following steps:
judging whether a call instruction of a designated operation end is received, wherein the call instruction comprises operation task information of the designated operation end, the designated operation end is any one of all operation ends connected with a transfer server, and the transfer server comprises a function preloading environment allocation operation resource;
if yes, judging whether the operation task information comprises a public operation part for starting the computer cluster;
if yes, controlling transfer servers arranged at all running ends in front, and distributing the public operation part to a computer cluster controlled by the transfer servers according to the operation task information of the specified operation end;
judging whether the transfer server sends a signal feedback that the computer cluster finishes the operation or not;
and if so, controlling the transfer server to receive the operation result and returning the operation result to the specified operation terminal.
2. The method according to claim 1, wherein the designated runtime side includes an H5 page of an APP, and the step of determining whether a call instruction of the designated runtime side is received includes:
acquiring the calling frequency of all functions in the public javascript in the H5 page;
marking the function with calling frequency exceeding the preset frequency as a public function;
packaging and integrating the public functions into deployment resources through a component tool;
and deploying the deployment resources to the APP or the specified server through a deployment script, and initializing the deployment resources to be a function preloading environment in the transit server.
3. The method for computing based on function preloading environment according to claim 2, wherein the step of packaging and integrating the common function into deployment resources through component tools comprises:
calling a code scanning tool to scan function codes of the public functions, wherein the function codes are arranged in a character string mode;
analyzing the occurrence frequency of each character string in the function code, calculating the maximum frequency Nmax and the minimum frequency Nmin, and calculating the average Navg according to the maximum frequency Nmax and the minimum frequency Nmin;
taking the average Navg as a standard, extracting a function with the occurrence frequency being more than or equal to the average Navg as an intermediate function;
converting the grammar of the intermediate function into an ast grammar tree through an ast tool;
and converting the ast syntax tree into corresponding assembly codes by using C language, and integrating the assembly codes into the deployment resources.
4. The computing method based on the function preloading environment as claimed in claim 1, wherein the step of controlling the relay servers pre-positioned at all the operation ends, and distributing the common computing part to the computer cluster controlled by the relay servers according to the computing task information of the specified computing end comprises:
judging whether the operation task information of the specified operation end needs to call a public function and a functional function at the same time;
if yes, the public operation part is operated to obtain a first operation result by calling a first js execution function corresponding to the public function, and a second operation result obtained by operating a second js execution function corresponding to the function is called in parallel.
5. The method according to claim 4, wherein the step of computing the common operation part to obtain a first operation result by calling a first js execution function corresponding to the common function and concurrently calling a second operation result obtained by performing a function operation on a second js execution function corresponding to the function comprises:
acquiring a plurality of distribution modes for performing distribution operation on the public operation part and each computer in the computer cluster, and the running condition data of each computer in the current computer cluster fed back by the transfer server;
calculating the total running time corresponding to the public operation part by the multiple distribution modes according to the running condition data of each computer;
determining a designated distribution mode with the minimum total running time, wherein the designated distribution mode is included in the plurality of distribution modes, and the designated distribution mode comprises names of computers in a distributed computer cluster and operation contents of the common operation part corresponding to the computers respectively;
and calling the first js execution function operation for operation in parallel by the public function operation part through the transfer server according to the specified distribution mode, and sending the corresponding function operation in the operation of the specified operation end to the second execution function for operation.
6. The method according to claim 4, wherein the computation task information includes computation logic, and the step of controlling the relay server to receive the computation result and return the computation result to the specified operation terminal includes:
controlling the transfer server to receive in real time, and calling the operation results respectively returned by the first js execution function by each computer in the computer cluster according to the operation logic;
controlling the transfer server to combine operation results respectively returned by calling the first js execution function by each computer into the first operation result according to the operation logic;
controlling the transfer server to return the first operation result to the appointed operation end;
and merging a second operation result obtained by calling a second js execution function corresponding to the function from the designated running end bearing the H5 page with the first operation result, and displaying the second operation result on the H5 page.
7. The method according to claim 1, wherein the runtime side comprises H5 page, and after the step of controlling the transit server to receive the computation result and return the computation result to the designated runtime terminal, the method comprises:
acquiring the times of calling the transfer server by each H5 page;
marking the designated H5 page with the largest number of calls;
judging whether an initialization instruction of the specified H5 page is received;
if yes, a specific operation space of the transit server is allocated to serve the specified H5 page.
8. An arithmetic device based on a function preloading environment, comprising:
the system comprises a first judgment module, a second judgment module and a transfer server, wherein the first judgment module is used for judging whether a call instruction of a designated operation end is received or not, the call instruction comprises operation task information of the designated operation end, the designated operation end is any one of all operation ends connected with the transfer server, and the transfer server comprises a function preloading environment allocation operation resource;
the second judgment module is used for judging whether the operation task information comprises a public operation part for starting the computer cluster or not if a call instruction of a specified operation end is received;
the first control module is used for controlling the transfer servers arranged in front of all the running ends if the operation task information comprises a public operation part for starting the computer cluster, and distributing the public operation part to the computer cluster controlled by the transfer servers according to the operation task information of the specified operation end;
the third judging module is used for judging whether the transfer server sends a signal feedback that the computer cluster finishes the operation or not;
and the second control module is used for controlling the transfer server to receive the operation result and return the operation result to the specified operation terminal if the transfer server sends a signal feedback that the operation of the computer cluster is completed.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010592342.2A 2020-06-24 2020-06-24 Operation method and device based on function preloading environment and computer equipment Pending CN111831352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010592342.2A CN111831352A (en) 2020-06-24 2020-06-24 Operation method and device based on function preloading environment and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010592342.2A CN111831352A (en) 2020-06-24 2020-06-24 Operation method and device based on function preloading environment and computer equipment

Publications (1)

Publication Number Publication Date
CN111831352A true CN111831352A (en) 2020-10-27

Family

ID=72899031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010592342.2A Pending CN111831352A (en) 2020-06-24 2020-06-24 Operation method and device based on function preloading environment and computer equipment

Country Status (1)

Country Link
CN (1) CN111831352A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032209A (en) * 2021-03-09 2021-06-25 北京百度网讯科技有限公司 Operation monitoring method, device, server and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080127141A1 (en) * 2006-08-17 2008-05-29 Mike Stephen Fulton Conservative class preloading for real time java execution
US20120042319A1 (en) * 2010-08-10 2012-02-16 International Business Machines Corporation Scheduling Parallel Data Tasks
CN103200350A (en) * 2013-03-29 2013-07-10 北京中科大洋科技发展股份有限公司 Nonlinear cloud editing method
US9811353B1 (en) * 2010-07-29 2017-11-07 Crimson Corporation Remotely invoking dynamic classes on a computing device
CN109582303A (en) * 2018-10-31 2019-04-05 平安科技(深圳)有限公司 General purpose module call method, device, computer equipment and storage medium
CN111045755A (en) * 2019-11-11 2020-04-21 国云科技股份有限公司 Heterogeneous computing system with transparent development and operation and implementation method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080127141A1 (en) * 2006-08-17 2008-05-29 Mike Stephen Fulton Conservative class preloading for real time java execution
US9811353B1 (en) * 2010-07-29 2017-11-07 Crimson Corporation Remotely invoking dynamic classes on a computing device
US20120042319A1 (en) * 2010-08-10 2012-02-16 International Business Machines Corporation Scheduling Parallel Data Tasks
CN103200350A (en) * 2013-03-29 2013-07-10 北京中科大洋科技发展股份有限公司 Nonlinear cloud editing method
CN109582303A (en) * 2018-10-31 2019-04-05 平安科技(深圳)有限公司 General purpose module call method, device, computer equipment and storage medium
CN111045755A (en) * 2019-11-11 2020-04-21 国云科技股份有限公司 Heterogeneous computing system with transparent development and operation and implementation method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032209A (en) * 2021-03-09 2021-06-25 北京百度网讯科技有限公司 Operation monitoring method, device, server and medium

Similar Documents

Publication Publication Date Title
CN109344183B (en) Data interaction method and device, computer equipment and storage medium
CN109766124B (en) Service development method, device, computer equipment and storage medium
CN110489447B (en) Data query method and device, computer equipment and storage medium
CN111190703B (en) Real-time data processing method and device, computer equipment and storage medium
CN110503385B (en) Service processing method, device, computer equipment and storage medium
CN109597618B (en) Program development method, program development device, computer device, and storage medium
CN109739583B (en) Method, device, computer equipment and storage medium for parallel running of multiple threads
CN110837956A (en) Underground cable inspection task distribution method and device
CN111831352A (en) Operation method and device based on function preloading environment and computer equipment
CN111666112B (en) Method, device and system for realizing platform plug-in and computer equipment
CN112000465B (en) Method and system for reducing performance interference of delay sensitive program in data center environment
CN109327321B (en) Network model service execution method and device, SDN controller and readable storage medium
CN114237628B (en) Microservice arranging and calling method and device, computer equipment and storage medium
CN114064326A (en) Method and device for processing micro-service request, computer equipment and storage medium
CN110502242B (en) Code automatic generation method and device, computer equipment and storage medium
CN111224939A (en) Task request intercepting method and device, computer equipment and storage medium
CN110659131A (en) Task processing method, electronic device, computer device, and storage medium
CN111047187B (en) Information matching processing method, device, computer equipment and storage medium
CN114461954A (en) Dynamic plug-in operation method, device, system and storage medium
CN113256097A (en) Customer service seat switching method and device and electronic equipment
CN114077535A (en) Incremental test environment deployment method, device, server and storage medium
CN111666155A (en) Resource configuration file management method, device, equipment and medium
CN112714148A (en) Interface configuration method, device, equipment and medium
CN114924869A (en) Thread multiplexing task segmentation processing method, device, equipment and medium
CN112817813B (en) Data collection method, device and equipment based on reaction hops

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