CACHE MANAGEMENT PROGRAM, CACHE MANAGEMENT METHOD, AND INFORMATION PROCESSING APPARATUS

The cache management system optimizes processing efficiency by distinguishing between requests with changing and consistent responses, using separate caches to store input data and execution results, thereby reducing load and delays in tasks like mathematical expression processing.

JP7548281B2Active Publication Date: 2024-09-10CASIO COMPUTER CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2022146087
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-09-14
Publication Date
2024-09-10
Estimated Expiration
2040-03-25

AI Technical Summary

Technical Problem

The increasing communication and processing loads in web services due to the development of technology hinder efficient processing and caching mechanisms, particularly in tasks like mathematical expression processing, where caching alone does not effectively speed up subsequent requests with varying input data.

Method used

A cache management system that differentiates between requests with changing responses and those with consistent results, storing input data and execution results of processes in separate caches to facilitate faster processing by reusing cached results for similar tasks.

Benefits of technology

This approach reduces processing load and communication delays by leveraging caches of different granularities to reuse execution results, thereby enhancing processing efficiency and speed in tasks like mathematical expression processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548281000009
    Figure 0007548281000009
  • Figure 0007548281000010
    Figure 0007548281000010
  • Figure 0007548281000012
    Figure 0007548281000012
Patent Text Reader

Abstract

We provide technology that uses cache to make processing more efficient. [Solution] An information processing device according to one embodiment includes an execution unit that executes multiple processes to generate a response in response to a request when the correspondence between a request and a response in response to the request is not stored in a first cache, a first storage unit that stores the response generated based on the execution results of the multiple processes in the first cache in correspondence with the request, a second storage unit that stores the execution results of the processes in a second cache in correspondence with the input data for each of the multiple processes, and a reply unit that returns a response to the request.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a cache management program. ,tree The present invention relates to a cache management method and an information processing device. [Background technology]

[0002] Caching is used to speed up processing. For example, by storing data that has been used once as a cache, the same data can be processed more quickly when it is used again. For example, in a web browser, web pages that have been viewed once and images used on those web pages are stored in a storage device as a cache. As a result, when the same web page is displayed again later, the data can be read from the cache without communicating with the server again to obtain the data, which speeds up the display.

[0003] Regarding the use of cache, a technique is known that allows a response to be made without communicating with a server even in an offline state (for example, Patent Document 1). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2011-164749 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, in recent years, with the development of technology, various web services have been provided, and the communication load and processing load have increased accordingly. Therefore, there is a demand for further technology that can reduce the communication load and processing load.

[0006] In one aspect, the present invention aims to provide a technique for improving the efficiency of processing by using a cache. [Means for solving the problem]

[0007] A cache management program according to one embodiment of the present invention receives a request based on input data. , the above determining whether the request is a request whose response content changes each time it is executed, and if it is determined that the request is a request whose response content changes each time it is executed, Without storing the request and a response obtained by executing a process corresponding to the request in a cache, A process corresponding to the request is executed, and a response obtained by the execution of the process corresponding to the request is returned to the request. A request whose response content changes each time it is executed is a request whose input data corresponding to the request includes data that specifies a process including at least one of a random function and a shuffle function. . Effect of the Invention

[0008] It is possible to provide a technique for making processing more efficient by using a cache. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 illustrates a cache management system according to an embodiment. [Diagram 2] FIG. 1 is a diagram illustrating a block configuration of an information processing device according to an embodiment. [Diagram 3] 11 is a diagram illustrating an example of an operational flow of a process executed by an information processing device according to an embodiment in response to a request. [Figure 4] 1 is a diagram illustrating an example of a thread that executes a process for generating a response corresponding to a request according to an embodiment. FIG. [Diagram 5] FIG. 11 is a diagram illustrating a flow of generating a response. [Figure 6] FIG. 2 illustrates an example of a first cache. [Figure 7] 11A and 11B are diagrams illustrating examples of requests and responses registered in a first cache. [Figure 8] FIG. 13 illustrates a second cache. [Figure 9] FIG. 11 is a diagram illustrating an example of an operational flow of a process for generating a response according to the embodiment. [Figure 10] 11 is a diagram illustrating an example of an operational flow of a process executed by a child thread to generate a response according to an embodiment. FIG. [Figure 11] FIG. 11 is a diagram illustrating an example of an operational flow of processing corresponding to input data. [Figure 12] FIG. 13 is a diagram illustrating the use of caches of different granularities according to an embodiment. [Figure 13] FIG. 2 is a diagram illustrating an example of a hardware configuration of a computer for implementing the information processing device according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, several embodiments of the present invention will be described in detail with reference to the drawings. Note that the same reference numerals are used to denote corresponding elements in the various drawings.

[0011] For example, if a request and the response to that request are stored in a cache, the next time the same request is received, the response stored in the cache can be read and used, eliminating the need to execute the process again and allowing for faster processing.

[0012] By the way, some of the execution results of multiple processes executed to generate a response to a request can be reused to generate a response to another request. Even in this case, if the execution results of multiple processes executed to generate a response are not cached, they cannot be used in the other process.

[0013] Therefore, in the embodiment described below, for multiple processes executed to generate a response to a request, the input data of the process and the execution results are associated with each other and stored in a cache. Therefore, for example, when another request is received, if the process executed to generate a response to the other request includes a process that corresponds to multiple cached processes, the cached execution results can be used to speed up the process.

[0014] An example of a situation in which the execution result of a process executed to generate a response to a request can be reused in another process is a process in which the execution result is always the same for the same process. An example of such a process is mathematical processing. Mathematical processing may include, for example, a process of outputting the calculation result of a mathematical formula, a process of drawing a graph of a mathematical formula, a process of obtaining another mathematical formula and graph such as a tangent to a mathematical formula and graph, a process of obtaining an equation for a group of data points, and a process of obtaining statistical values ​​such as the average and variance.

[0015] In recent years, terminals such as scientific calculators that execute mathematical processing in response to a request input by a user and draw the results on a display screen have been provided. In addition, a service has been provided in which a server is accessed from a terminal via a web browser, and a mathematical processing request is sent to the server, and the mathematical expression and the corresponding calculation results, such as a graph, are displayed in the display area of ​​the browser as a response. However, for example, when mathematical processing is executed on a terminal, the processing load is high and processing delays may occur. Also, for example, even when mathematical processing is executed on a server via a browser, depending on the mathematical processing, the processing load may be high and delays may occur, or delays may occur due to the communication time between the terminal and the server. Therefore, there is a demand for further technology that can reduce the processing load and communication load of mathematical processing.

[0016] For example, such mathematical processing has a characteristic that when the same mathematical expression is used, the calculation result is the same. For example, even if different mathematical expressions are used, if the mathematical expressions are partially identical, the calculation result will be the same for the identical portion. Therefore, even if requests process different mathematical expressions, if the mathematical expressions have a common portion, the calculation result of one request can be used for the calculation of the other request. However, if a request and a response to the request are simply associated and cached, the cache will not be hit when a different request is received, and therefore the cache cannot be used to speed up processing even if the calculation result of a portion of the processing can be reused. An example is described below.

[0017] For example, y=x 2 Let's say you get a request to plot the formula y=x+1 on a graph. In this case, you can simply write 2 Assume that a request to plot +1 on a graph is associated with a response containing coordinate values ​​that represent the shape of the graph and cached. In this case, later, y=x 2 If another request comes in to plot +20 on the graph, y=x 2 Since this is different from the request to plot +1 on the graph, it does not hit the cache and the cache cannot be used.

[0018] However, y=x 2 +1 and y=x 2 +20 and x 2 The result of the calculation of the part is the same. Therefore, for example, x 2 If you save the coordinates of the graph shape in the cache, then 2 If another request comes in to plot +20 on the graph, x 2 The coordinate values ​​of the part can be reused. 2 This reduces the amount of processing required to draw a +20 graph.

[0019] Note that, although the description is given here taking formula processing as an example, the embodiment is not limited to application to formula processing. In another embodiment, the embodiment may be applied to other processes such as processing character strings in documents or processing images. In this case, the embodiment can also be applied in such a way that, for example, a request for processing character strings, images, etc. and the response are stored in the first cache 112, while input data for processing character strings, images, etc. and execution results of the processing are associated with each other and stored in the second cache 113 for each of a plurality of processes executed to generate a response. The embodiment will be described in more detail below.

[0020] FIG. 1 is a diagram illustrating a cache management system 100 according to an embodiment. For example, in FIG. 1, the cache management system 100 includes an information processing device 101 and a service providing server 102. Note that the service providing server 102 may be, for example, a computer that operates as a server. In another embodiment, the service providing server 102 may be composed of a plurality of servers. In FIG. 1, the information processing device 101 may communicate with the service providing server 102 via, for example, a browser 111, and receive a service related to mathematical expression processing from the service providing server 102.

[0021] The information processing device 101 may be, for example, a computer such as a personal computer (PC), a mobile PC, a tablet terminal, a smartphone, or a mobile phone. The information processing device 101 includes a first cache 112 that stores a request and a response to the request in association with each other, and a second cache 113 that stores input data and execution results of a plurality of processes executed to generate a response to the request in association with each other. The information processing device 101 may also be connected to a service providing server 102 via a network 105 such as a public line network and the Internet. When the information processing device 101 receives a request from a user via a browser 111 for performing mathematical processing such as drawing a graph corresponding to a mathematical formula, the information processing device 101 transmits the request to the service providing server 102.

[0022] When the service providing server 102 receives a request from the information processing device 101, the service providing server 102 refers to the third cache 131 to see if a response to the request is registered in the cache. If a response corresponding to the request is registered in the third cache 131, the service providing server 102 provides the response to the information processing device 101. On the other hand, if a response corresponding to the request is not registered in the third cache 131, the service providing server 102 executes a plurality of processes executed for generating a response to the request using the formula processing module 141, generates a response based on the obtained calculation results, and returns the response to the information processing device 101. Note that the formula processing module 141 may be, for example, software that symbolically processes formulas using a computer. An example of the formula processing module 141 is a formula processing system such as a CAS (Computer algebra system).

[0023] Furthermore, the service providing server 102 associates the generated response with the request and registers it in the third cache 131. Thereby, when the same request is subsequently received, the response can be obtained from the third cache 131, and therefore the response can be provided to the service providing server 102 at high speed.

[0024] For example, the information processing device 101 can display a mathematical expression, a graph, or the like corresponding to the request in the display area of ​​the browser based on the received response.

[0025] However, as described above, when a request is sent to the service providing server 102 and a response corresponding to the request is obtained on the cloud, a delay may occur in drawing a graph based on the response due to communication time between the information processing device 101 and the service providing server 102. Therefore, in the embodiment, the information processing device 101 attempts to obtain a response corresponding to the request locally. The process executed by the information processing device 101 will be described in more detail below.

[0026] FIG. 2 is a diagram illustrating a block configuration of an information processing device 101 according to an embodiment. The information processing device 101 includes, for example, a control unit 201, a storage unit 202, a communication unit 203, and a display unit 204. The control unit 201 may control each unit of the information processing device 101. In the embodiment, the control unit 201 includes a browser 111, a formula processing module 212, and a processing module 213. For example, the formula processing module 212 may be software that uses a computer to symbolically process a formula, and in one example, is a formula processing system such as CAS. The processing module 213 executes, for example, a process of controlling the reading and writing of information to the first cache 112 and the second cache 113. The processing module 213 includes, for example, an execution unit 231, a first storage unit 232, a second storage unit 233, and a reply unit 234, and may also include other functional units. The storage unit 202 includes, for example, the first cache 112 and the second cache 113. The communication unit 203 communicates with other devices, for example, according to instructions from the control unit 201. For example, the communication unit 203 may communicate with the service providing server 102. The display unit 204 may be, for example, a display device such as a display, and displays information according to instructions from the control unit 201. Details of each of these units and details of the information stored in the storage unit 202 will be described later.

[0027] 3 is a diagram illustrating an example of an operational flow of a process executed by the control unit 201 of the information processing device 101 according to the embodiment in response to a request. For example, when a request is input from a user via the browser 111, the control unit 201 may start the operational flow of FIG.

[0028] In step 301 (hereinafter, step is written as "S", for example, S301), the control unit 201 of the information processing device 101 judges whether or not it is in an online environment. For example, when communication by the communication unit 203 is in an offline state, such as poor radio wave conditions from a base station for connecting to a public line network or poor connection conditions with the Internet, the control unit 201 may judge NO in S301, and the flow proceeds to S302.

[0029] In S302, the control unit 201 determines whether offline processing is possible. For example, the control unit 201 may determine whether offline processing is possible based on whether a module or a program required to generate a response corresponding to a request is stored in the storage unit 202. When multiple processes are executed using WebAssembly to generate a response, in S302, the control unit 201 may determine whether offline processing is possible by determining whether the browser 111 supports WebAssembly, for example. Depending on the implementation of the cache management system 100, a specific request may be configured to be processed by the service providing server 102. As an example, some mathematical processing may be configured to be processed by the service providing server 102 because the processing load is high or a special module is used. In such a case, when the control unit 201 receives a specific request, the process of S302 may be determined to be NO.

[0030] If offline processing is not possible in S302 (NO in S302), the flow proceeds to S304. In this case, since online connection is not possible and offline processing cannot be executed, the control unit 201 may notify an error and end this operation flow.

[0031] On the other hand, if it is determined in S302 that offline processing is possible (YES in S302), the flow proceeds to S303. In S303, the control unit 201 executes processing to generate a response corresponding to the request. Details of the response generation processing will be described later with reference to Fig. 9. Then, in S305, the control unit 201 outputs the response, and this operation flow ends.

[0032] Also, if the environment is online and connectable to the network 105 in S301, the control unit 201 determines YES, and the flow proceeds to S306. In S306, the control unit 201 determines whether offline processing is possible. Note that in S306, the control unit 201 may determine whether offline processing is possible by, for example, the same processing as in S302. As described above, when attempting to obtain a response corresponding to a request online from the service providing server 102, a delay in processing may occur due to communication time with the service providing server 102, etc. Therefore, if offline processing is possible (YES in S306), the flow may proceed to S307, and offline processing may proceed.

[0033] In S307, the control unit 201 executes a process of generating a response corresponding to the request. In S307, the same process as in S303 may be executed. Note that the details of the process of generating a response will be described later with reference to FIG. 9 as described above.

[0034] In S308, the control unit 201 determines whether the response generated for the request contains an error. The error may be, for example, a process crash, a timeout, etc. If the response does not contain an error (NO in S308), the flow proceeds to S305, and the control unit 201 outputs the obtained response.

[0035] On the other hand, if the response contains an error in S308, for example, an error may have occurred in the process for acquiring a response corresponding to the request, and a correct response may not yet have been acquired. In this case, the response may be successfully generated by executing a process for generating a response corresponding to the request in the service providing server 102. Therefore, the control unit 201 determines YES in S308, and the flow proceeds to S309. Also, if offline processing is not possible in S306 (NO in S306), if the environment is online, the service providing server 102 can be requested to generate a response, and the flow proceeds to S309.

[0036] In S309, the control unit 201 transmits a request to the service providing server 102. Upon receiving the request, the service providing server 102 generates a response corresponding to the request by referring to the third cache 131 and causing the mathematical expression processing module 141 or the like to execute processing, as illustrated with reference to FIG.

[0037] In S310, the control unit 201 receives a response from the service providing server 102. In S311, the control unit 201 associates the request transmitted to the service providing server 102 with the response from the service providing server 102, and registers a record in the first cache 112. Details of the first cache 112 will be described later. Thereby, when a request for which an error may be returned in offline processing is received again, a normal response can be returned while avoiding the possibility of an error due to offline processing and a delay due to communication. In S311, for example, if the request transmitted to the service providing server 102 is a request including a random function, a shuffle function, or the like, whose result changes each time it is executed, the control unit 201 may not execute registration in the first cache 112. In addition, for example, if the response received from the service providing server 102 in S311 is a response including an error such as a processing crash or a timeout error, the control unit 201 may not execute registration in the first cache 112. When the process of S311 ends, the flow proceeds to S305. In this case, in S305, the control unit 201 outputs the response received from the service providing server 102, and this operation flow ends.

[0038] As described above, according to the operational flow of FIG. 3, when a request is input, it is possible to appropriately allocate whether the generation of a response to the request is to be executed by the information processing device 101 or the service providing server 102.

[0039] 3, for example, when a response corresponding to a request can be generated by offline processing, the processing is executed offline. This reduces communication between the information processing device 101 and the service providing server 102, thereby reducing delays caused by communication time.

[0040] Also, in an online environment, if offline processing cannot be performed or an error occurs in offline processing, the control unit 201 transmits a request to the service providing server 102. As a result, if a response cannot be generated in offline processing, a response corresponding to the request can be generated on the cloud. In the above processing of FIG. 3, if an error is determined in S308, the service providing server 102 is requested to process the request, but the embodiment is not limited to this. For example, in another embodiment, a process of generating a response corresponding to the request locally in S307 may be performed, and in parallel with this, a process of S309 may be performed to request the service providing server 102 to provide a response corresponding to the request. As a result, a response can be received at an earlier timing than when a request is sent to the service providing server 102 after an error occurs in local processing. Also in this case, if the received response is not an error, the request and the received response may be associated with each other and stored in the first cache.

[0041] Furthermore, if a response cannot be generated offline in an offline environment, an error is notified to the user, so that the user can know that a response corresponding to the request cannot be generated.

[0042] Next, a process of generating a response corresponding to the request in S303 and S307 will be described. In the embodiment, the process of generating a response corresponding to the request may be multi-threaded by a main thread 401 implemented in JavaScript (JavaScript is a registered trademark) and a child thread 402 implemented using WebWorker.

[0043] 4 is a diagram illustrating threads that execute a process for generating a response corresponding to a request according to the embodiment. FIG. 4(a) illustrates a case where a response is generated in one thread, and the thread can be implemented using, for example, JavaScript. However, in this case, the process for generating a response and other processes, such as a process for drawing a graph in the display area of ​​the browser 111, are executed consecutively in one thread, so that the next process cannot be started until the previous process is completed, which may result in, for example, a delay in drawing.

[0044] Therefore, in one embodiment, as shown in FIG. 4B, in addition to the main thread 401, at least one child thread 402 for executing a process of generating a response is implemented. The child thread 402 can be generated by using, for example, the WebWorker API. The child thread 402 has a cache mechanism therein and can exchange information with the main thread 401 by message events (asynchronous). As shown in FIG. 4B, by implementing multithreading, the main thread 401 can execute other processes such as drawing while causing the child thread 402 to generate a response, without waiting for the result of the response generation process of the child thread 402. Therefore, it is possible to suppress delays in other processes such as drawing caused by the response generation process. Note that, in one embodiment, the child thread 402 refers to a cache assigned to itself, but does not need to refer to a cache assigned to another child thread 402. Depending on the environment, it may not be possible to refer to a cache between child threads 402 implemented by using WebWorker. Therefore, by configuring the child thread 402 not to refer to the cache of other child threads 402, the embodiment can be applied to such a wide range of environments.

[0045] Note that in steps S303 and S307, the control unit 201 may execute the process of generating a response by calling a main thread 401 implemented in JavaScript using an API (Application Programming Interface), for example.

[0046] The following describes the flow of response generation executed by the main thread 401 and the child thread 402. Fig. 5 is a diagram illustrating an example of the flow of response generation. When the main thread 401 is called in response to a request, for example, in the above-mentioned processing of S303 or S307 (Fig. 5(1)), the main thread 401 checks whether or not a response corresponding to the request is stored in the first cache 112 (Fig. 5(2)).

[0047] Fig. 6 is a diagram illustrating the first cache 112. In the example shown in Fig. 6, a cache key and a value corresponding to the cache key are registered in the first cache 112 in association with each other. In the first cache 112, a request is registered in the cache key, and a response corresponding to the request is registered in the value. Note that the request itself may be registered in the cache key of the first cache 112, but in another embodiment, for example, a value obtained by executing a predetermined process such as a process using a hash function on the request may be registered.

[0048] FIG. 7 is a diagram illustrating a correspondence relationship between a request and a response registered in the first cache. FIG. 7(a) illustrates a request, and FIG. 7(b) illustrates a response corresponding to the request. The request and the response may be data in a JSON (JavaScript Object Notation) format, for example. FIG. 7(a) illustrates a request requesting drawing of a graph on a display screen of a browser, and includes information necessary for processing to draw the graph. For example, in FIG. 7(a), the request includes an identifier for identifying the request, a graph formula specifying the graph to be drawn, and a range specification specifying the range of the graph. The request also includes various setting information related to the processing to draw the graph. The setting information may be information specifying options for calculations such as which of radians, degrees, and grads to use for the angle in the processing, which decimal places to round off, and whether complex numbers are valid. The request also includes information specifying the drawing range of the graph. For example, in FIG. 7, the maximum and minimum values ​​of the range and the interval of the steps for plotting dots are specified for each of the X and Y axes as the drawing range.

[0049] Fig. 7(b) illustrates a response including information necessary for drawing a graph corresponding to the request. For example, in Fig. 7(b), the response includes information about the graph and a list of coordinate points of the graph. The information about the graph includes, for example, the type of graph and information about the presence or absence of an error indicating whether an error occurred in multiple processes executed to generate the response. Furthermore, the list of coordinate points of the graph includes, for example, information about the coordinates of each point of the graph. For example, the first cache 112 may store pairs of requests and responses such as those described above in association with each other.

[0050] Then, in FIG. 5(2), if the response corresponding to the request is stored in the first cache 112, the main thread 401 reads the response corresponding to the request stored in the first cache 112 and returns the response to the calling browser 111 (FIG. 5(3)).

[0051] On the other hand, if the response corresponding to the request is not stored in the first cache 112, the main thread 401 requests the processing module 213 of the child thread 402 to process the request (FIG. 5(4)).

[0052] When the processing module 213 of the child thread 402 receives a request, it executes a number of processes for generating a response corresponding to the request, while referring to the second cache 113 and requesting processing from the mathematical expression processing module 212 (FIG. 5(5)). In the multiple processes for generating a response, the processing module 213 may execute multiple processes, such as, for example, mathematical expression determination, mathematical expression type determination, graph point calculation, etc., using information included in the request. Further details of these exemplary processes will be described later.

[0053] Then, for example, when the processing module 213 executes a plurality of processes for generating a response, if the execution result of the process is stored in the second cache 113, the processing module 213 uses the execution result of the process to proceed to the next process of the plurality of processes. On the other hand, if the execution result of the process is not stored in the second cache 113, the processing module 213 requests the mathematical processing module 212 to execute the process and obtains the execution result of the process. Note that when requesting the mathematical processing module 212 to execute the process, the processing module 213 may register a set of the input data of the process and the execution result in the second cache 113 (FIG. 5(6)).

[0054] FIG. 8 is a diagram illustrating the second cache 113. In the second cache 113, for example, a cache key and a value are registered in association with each other. The cache key may be input data input in each process of a plurality of processes executed to generate a response. The input data may include, for example, a part of information read from a request, an execution result of a process executed earlier among the plurality of processes, and information generated based on the information. The value may be a result of the process. Note that the input data of the process itself may be registered in the cache key of the second cache 113, but in another embodiment, for example, a value obtained by executing a predetermined process such as a process using a hash function on the input data may be registered.

[0055] Next, the processing module 213 of the child thread 402 generates a response corresponding to the request based on the execution results of the multiple processes, and returns it to the main thread 401 (FIG. 5(7)). Upon receiving the response from the child thread 402, the main thread 401 associates the request with the response and stores it in the first cache 112 (FIG. 5(8)). In addition, the main thread 401 returns the response received from the child thread 402 to the calling browser 111 as a response to the request (FIG. 5(9)), thereby ending the processing of S303 or S307 in FIG. 3, and proceeding to the next processing.

[0056] In addition, multiple child threads 402 that generate a response may be implemented, and the main thread 401 may add a request to a task queue, for example, to cause an available child thread 402 among the multiple child threads 402 to process the request in order.

[0057] 5, requests and their corresponding responses are stored in association with each other in the first cache 112. Meanwhile, the second cache 113 stores input data for each of a plurality of processes executed to generate a response corresponding to a request, and the execution results of the process in association with each other.

[0058] Furthermore, in the main thread 401, when the control unit 201 receives a request, it checks whether the request is registered in the first cache 112, and if the request is registered, it obtains a response corresponding to the request from the first cache 112 and returns it to the browser 111. Therefore, if the same request has been processed in the past, it is possible to speed up the processing by using the first cache 112.

[0059] Furthermore, in the child thread 402, the control unit 201 operating as the processing module 213 checks whether a process is registered in the second cache 113 when executing a plurality of processes for generating a response corresponding to a request. If the process is registered in the second cache 113, the control unit 201 obtains the result of the process from the second cache 113 and proceeds to the next process. Therefore, for example, if some of the processes executed for a received request were executed when processing another request in the past, the second cache 113 can be used to speed up the process.

[0060] As described above, in the formula processing, the processing module 213 uses information included in the request to execute multiple processes, such as formula determination, formula type determination, graph point calculation, etc., while requesting the processing from the formula processing module 212. The execution results of the multiple processes may be registered in the second cache 113 in association with the input data for those processes. Below, simple examples of those multiple processes will be described.

[0061] (1) Mathematical formula judgment processing In the formula determination, the processing module 213, for example, determines whether or not the graph formula specified in the request is an equation. For example, when the processing module 213 receives the request of FIG. 7(a), it may read the graph formula: y=sin(x) of the request and check whether or not y=sin(x) is an equation. For example, when the user is asked to input an equation to be graphed, the user may input a character string that cannot be graphed. In that case, the processing module 213 may determine that an error has occurred in the formula determination. Examples of character strings that cannot be graphed include a case where only a constant term such as "3" or a variable term such as "y" is input, and a case where there is an error in the description of an equal sign (=) or an inequality.

[0062] In this case, since y=sin(x) is an equation, as a result of the above formula determination, the input data: y=sin(x) and the determination result, "equation", are registered in the first row record of the second cache 113 in Figure 8.

[0063] (2) Formula type determination process In determining the type of the formula, the processing module 213 determines which graph type the graph formula "y=sin(x)" belongs to, for example, among the y=f(x) type or x=f(y) type of the Cartesian coordinate system, and the r=f(θ) type of the polar coordinate system. If the left side of the graph formula specified in the request is y and the right side is a formula that does not include an independent variable other than x, it is determined to be the y=f(x) type of the Cartesian coordinate system. If the left side of the graph formula is y and the right side is a formula that does not include an independent variable other than x, it is determined to be the x=f(y) type of the Cartesian coordinate system. If the left side of the graph formula is r and the right side is a formula that does not include an independent variable other than θ, it is determined to be the r=f(θ) type of the polar coordinate system.

[0064] In this case, since y=sin(x) is of the y=f(x) type in the Cartesian coordinate system, as a result of the above formula type determination, the input data: y=sin(x) and the determination result "y=f(x) type" are registered in the second row record of the second cache 113 in Figure 8.

[0065] For example, as described above, the processing module 213 can determine the type of the graph formula. Note that the input data and the execution results of the processes from step 1 to step 3 described in the above determination of the formula type are registered in the second row record of the second cache 113 in FIG.

[0066] (3) Graph point calculation process In the graph point calculation, the processing module 213 calculates the coordinate values ​​of the graph points included in the drawing range for the graph formula of the request. For example, in the request of FIG. 7(a), the graph formula: y=sin(x) and the graph range: Xmin:-7.5, Xmax:7.5, Xstep:0.1, Ymin:-7.5, Ymax:7.5, Ystep:0.1 are specified. The control unit 201 may obtain the coordinates of the graph points in the range specified in the graph point calculation. The third entry of the second cache 113 in FIG. 8 registers a record corresponding to the graph point calculation. The record registers the graph formula: y=sin(x) as input data, its drawing range, and the coordinate values ​​of each point that are the execution result of the process as values.

[0067] For example, as shown in (1) to (3) above, the control unit 201 may execute a plurality of processes for generating a response corresponding to a request, and the execution results of the processes may be registered in the second cache 113 in association with the input data of the processes. Note that the above-mentioned plurality of processes for generating a response are merely examples, and the embodiment is not limited thereto. For example, depending on the embodiment, some of the above-mentioned plurality of processes may not be executed, or additional processes may be executed.

[0068] Next, the operational flow of the response generation process described above will be explained below.

[0069] 9 is a diagram illustrating an example of an operational flow of a process for generating a response executed by the control unit 201 operating as the main thread 401 according to the embodiment. For example, when the control unit 201 proceeds to S303 or S307, the control unit 201 may call and execute the process in FIG. 9 via an API or the like.

[0070] In S901, the control unit 201 operating as the main thread 401 generates a cache key for searching the first cache 112. For example, if a past request is registered in the cache key of the first cache 112, the control unit 201 may use the request as the cache key as is. Also, for example, if a value obtained by executing a predetermined process such as a process using a hash function is registered in the cache key of the first cache 112, the control unit 201 may execute the same process on the request to generate a cache key.

[0071] In S902, the control unit 201 searches the first cache 112 using the generated cache key, and determines whether or not a record corresponding to the request is registered in the first cache 112. If the record corresponding to the request is not registered in the first cache 112 (NO in S902), the flow proceeds to S906. On the other hand, if the record corresponding to the request is registered in the first cache 112 (YES in S902), the flow proceeds to S903.

[0072] In S903, the control unit 201 determines whether the request is an NG request that satisfies a predetermined condition. An NG request may be, for example, a request whose response content changes each time it is executed. This is because, for example, if the response content changes each time it is executed, even if the same request is registered in the first cache 112, the registered response and the response to the current request may have different content, and the cached value cannot be reused. Examples of requests whose results change each time they are executed include requests that include a random function, a shuffle function, and the like.

[0073] If the request is not an NG request that satisfies the predetermined condition in S903 (NO in S903), the flow proceeds to S904. In S904, the control unit 201 acquires a response corresponding to the request from the first cache 112, and in S905 returns the response to the caller's process of S303 or S307, and this operation flow ends.

[0074] On the other hand, if the request is NG in S903 (YES in S903), the flow proceeds to S906. In S906, the control unit 201 requests the child thread 402 to execute the request. For example, the control unit 201 may register a task of the request in a task queue and cause the child thread 402 to execute a process corresponding to the request.

[0075] In S907, the control unit 201 receives a response from the child thread 402. In S908, the control unit 201 determines whether the response is an NG response that satisfies a predetermined condition. An NG response that satisfies a predetermined condition may be, for example, an error response that indicates a state in which a correct response to a request cannot be generated. An error response includes, for example, a processing crash and a timeout error. If the response is an NG response (YES in S908), the flow proceeds to S905, and the control unit 201 may return the response determined to be an NG response to the caller's processing of S303 or S307 in S905. Note that, when an NG response is returned to S307, an error may be determined in S308, and the request may be transmitted to the service providing server 102 in the processing of S309. This allows the service providing server 102 to perform processing, thereby increasing the possibility of obtaining a correct response to the request.

[0076] On the other hand, if the response in S908 is not a NG response (NO in S908), the flow proceeds to S909. In S909, the control unit 201 registers the request and response in the first cache 112 in association with each other, the flow proceeds to S905, where the response is returned to the caller's process of S303 or S307, and this operation flow ends.

[0077] 9, in the main thread 401, when a response corresponding to a request is registered in the first cache 112, the control unit 201 can return the response. Therefore, a response to a request can be returned quickly.

[0078] 9, when the control unit 201 in the main thread 401 requests the child thread 402 to generate a response corresponding to a request, the control unit 201 stores the response received from the child thread 402 in the first cache 112 in association with the request. Therefore, when a similar request is subsequently received, the response stored in the first cache 112 can be used to process the request at high speed.

[0079] In the process of S909, the control unit 201 may not store the request and the response in the first cache 112 if the request is an NG request that includes a random function, a shuffle function, or the like.

[0080] Next, a description will be given of a process for generating a response corresponding to a request performed by the control unit 201 operating as the child thread 402. Fig. 10 is a diagram illustrating an example of an operational flow showing a process for generating a response corresponding to a request according to the embodiment. In the child thread 402, the control unit 201 may start the operational flow of Fig. 10 when a task is assigned to it from a task queue in which tasks corresponding to requests are registered, for example.

[0081] In S1001, the control unit 201 operating as the child thread 402 generates input data to be used in processing based on a request of an assigned task. In one example, the control unit 201 may extract a part of information included in the request (e.g., a graph formula, etc.) as input data.

[0082] In S1002, the control unit 201 executes processing on the input data. Note that the processing from S1002 to S1004 is repeated. In S1002, the control unit 201 may execute a series of multiple processes for generating a response to the request, starting from the top, sequentially proceeding to the next process for each repetition. For example, in the case of formula processing, the series of multiple processes may include processes such as formula determination, formula type determination, and graph point calculation. In S1003, the control unit 201 determines whether the series of multiple processes for generating a response to the request has been completed. If the series of multiple processes for generating a response to the request has not been completed (NO in S1003), the flow proceeds to S1004.

[0083] In S1004, the control unit 201 generates the next input data. For example, the control unit 201 may generate the next input data by reading other information from the request or by using the execution result of the process of S1002. After generating the next input data, the flow returns to S1002, and the control unit 201 may use the generated next input data to execute the next process of a series of multiple processes for generating a response.

[0084] Also, if a series of multiple processes for generating a response corresponding to the request has all been completed in S1003 (YES in S1003), the flow proceeds to S1005.

[0085] In S1005, the control unit 201 may generate a response based on the execution results of a series of multiple processes, and return the response to the main thread 401 by adding the generated response to a queue in which process results are registered, or the like.

[0086] Next, the process executed in S1002 will be described with reference to Fig. 11. Fig. 11 is a diagram illustrating an example of an operation flow of the process corresponding to the input data executed in S1002. For example, the control unit 201 operating as the child thread 402 may start the operation flow of Fig. 11 when proceeding to the process of S1002.

[0087] In S1101, the control unit 201 operating as the child thread 402 generates a cache key for searching the second cache 113 from the input data. For example, when past input data is registered as it is in the cache key of the second cache 113, the control unit 201 may use the input data as it is as the cache key. Also, when a value obtained by executing a predetermined process such as a process using a hash function is registered as the cache key in the second cache 113, the control unit 201 may execute the same process on the input data to generate a cache key.

[0088] In S1102, the control unit 201 searches the second cache 113 using the generated cache key, and determines whether or not a record corresponding to the input data is registered in the second cache 113. If a record corresponding to the input data is registered in the second cache 113 (YES in S1102), the flow proceeds to S1103.

[0089] In S1103, the control unit 201 determines whether the input data specifies an NG process that satisfies the first condition. The input data specifying the NG process may be, for example, input data specifying a process whose result changes each time it is executed. This is because, for example, if the execution result of the process changes each time it is executed, even if a record corresponding to the same input data is registered in the second cache 113, the execution result of the process is not necessarily the same in the next execution, and the cached value cannot be reused. Note that, examples of input data specifying a process whose result changes each time it is executed include input data specifying a process including a random function, a shuffle function, etc.

[0090] If the input data does not specify a process that is NG and satisfies the first condition in S1103 (NO in S1103), the flow proceeds to S1104. In S1104, the control unit 201 obtains the operation result corresponding to the input data from the second cache 113, and in S1105 returns the operation result to the caller process of S1002, and this operation flow ends.

[0091] On the other hand, if the record corresponding to the input data is not registered in the second cache 113 in S1102 (NO in S1102), and if the input data specifies an NG process in S1103 (YES in S1103), the flow proceeds to S1106. In this case, since the execution result of the process cannot be obtained from the second cache 113, the control unit 201 requests the mathematical processing module 212 to process the process corresponding to the input data in S1106. Note that, by requesting the mathematical processing module 212 to process in S1106 in the case of an NG process, it is possible to avoid diversion of the execution result of the process registered in the second cache 113 even when it cannot be diverted. In addition, the process requested to the mathematical processing module 212 in S1106 may differ depending on, for example, the input data or the timing at which the process in FIG. 11 is called out of a series of multiple processes for generating a response to a request. The processing requested to the mathematical processing module 212 may be, for example, processing such as mathematical expression determination, mathematical expression type determination, and graph point calculation.

[0092] In S1107, the control unit 201 receives the execution result of the requested process from the mathematical processing module 212. In S1108, the control unit 201 determines whether the execution result of the process is an NG execution result that satisfies the second condition. An NG execution result that satisfies the second condition may be, for example, a result including an error indicating a state in which the operation result for the input data has not been successfully acquired. The error includes, for example, a process crash, a timeout error, and the like. If the execution result of the process is an NG execution result (YES in S1108), the NG execution result may be returned in S1105 to the caller process of S1002. This makes it possible to avoid registering the execution result of the process in the second cache 113 even though the execution result cannot be used for another process.

[0093] On the other hand, if the execution result of the process in S1108 is not an NG execution result (NO in S1108), the flow proceeds to S1109. In S1109, the control unit 201 registers the input data and the execution result of the process in the second cache 113 in association with each other, and the flow proceeds to S1105, where the execution result of the process is returned to the caller of S1002, and this operation flow ends. Note that in S1109, if the input data is intended for an NG process including a random function, a shuffle function, etc., the control unit 201 does not need to store the input data and the execution result in the second cache 113.

[0094] 10 and 11, in the child thread 402, the control unit 201 executes a series of multiple processes for generating a response corresponding to a request. When executing a series of multiple processes, if the execution result of the process is registered in the second cache 113, the control unit 201 uses the execution result of the process, and therefore can execute the process at high speed.

[0095] On the other hand, when a series of multiple processes is executed, if the execution result of the process is not registered in second cache 113, control unit 201 requests the process from mathematical processing module 212, and stores the input data of the process and the execution result of the process in association with each other in second cache 113. Therefore, when a similar process is executed thereafter, the execution result of the process stored in second cache 113 can be used to execute the process at high speed.

[0096] According to the embodiment described above, data of different granularity is registered in the first cache 112 and the second cache 113. For example, in the embodiment described above, the granularity of information registered in the first cache 112 is greater than the granularity of information registered in the second cache 113.

[0097] As described above, requests and responses are associated and registered in the first cache 112. Therefore, if an input request is registered in the first cache 112, the response can be read from the first cache 112 and returned immediately. However, in this case, if the input request does not completely match the request registered in the first cache 112, the processing cannot be expedited.

[0098] On the other hand, for example, like mathematical operations, some of the execution results of multiple processes executed to generate a response to a request may be reused in a process to generate a response to another request. In this case, as described in the above embodiment, by registering the input data of each of the multiple processes executed in response to a request and the execution results of the process in the second cache 113, it becomes possible to reuse the execution results in a process to generate a response to another request. As a result, it is possible to speed up the process to obtain a response to a request and reduce the processing load.

[0099] 12 is a diagram for explaining the use of caches of different granularities according to an embodiment. For example, it is assumed that the control unit 201 in the information processing device 101 executes a process of drawing a graph corresponding to an equation on the display screen of the display unit 204. It is also assumed that the control unit 201 receives a request to continuously draw each corresponding graph while gradually increasing the value of a by 1 in the range of 0≦a≦10, where y=sin(x)+a.

[0100] In this case, the control unit 201 first executes a series of multiple processes for generating a graph of y=sin(x) with a=0, and displays the graph on the display screen based on the obtained response. The control unit 201 also records the request for y=sin(x) and the response including the coordinate values ​​of each point of the graph in the first cache 112. Furthermore, in the embodiment, the control unit 201 records the execution results of the processes in the second cache 113 in association with the input data of the multiple processes executed in generating the requested graph of y=sin(x). For example, the control unit 201 may use y=sin(x), which is a part of the formula of y=sin(x), as input data, and record the coordinate values ​​of each point of the graph in the second cache 113.

[0101] In this case, for example, when a graph of y=sin(x)+1 is generated next with a=1, only the response corresponding to the request of y=sin(x) is registered in the first cache 112, and since it is different from y=sin(x)+1, it is not possible to obtain information usable for generating the graph from the first cache 112. However, the coordinate values ​​of each point of the graph are registered in the second cache 113 with y=sin(x) as input data. Therefore, when generating a graph for a request of y=sin(x)+1, the control unit 201 can read the coordinate values ​​of the graph from the second cache 113 for sin(x), which is a part of the formula of y=sin(x)+1. Therefore, the processing can be performed at a higher speed than when all calculations are performed. Similarly, when drawing a graph of y=sin(x)+a in the range of a=2 to 10, the coordinate values ​​of the graph of y=sin(x) can be read from the second cache 113, thereby reducing the processing load and processing at a higher speed.

[0102] Then, when the control unit 201 draws the graph of y=sin(x)+10 with a=10 and then draws the graph of y=sin(x) again, it does not need to execute the calculation using the mathematical processing module 212 because the corresponding response has been registered in the first cache 112. This makes it possible to further reduce the processing load and speed up the processing.

[0103] Note that, here, an example of using information from the second cache 113 is described using an example where a part of the formula is common, but examples where the effect of the second cache 113 is expected are not limited to this. For example, assume that a request is received to instruct the drawing of a graph with the same formula but a different drawing range. In this case, since the formula is the same, for example, the determination results such as formula determination and formula type determination can be obtained from the second cache 113, thereby reducing the processing load and speeding up the processing.

[0104] As described above, for example, in the case of a process in which the execution result is always the same for the same process, such as mathematical operations, if one of a plurality of processes executed to generate a response to a request is the same as one of a second plurality of processes executed to generate a response to another request, the execution result of the previous process may be reused in a process to be executed later. In this case, according to the embodiment, not only is the response corresponding to the request cached, but the input data of the plurality of processes executed to generate a response are cached in association with the execution results of the processes, thereby reducing the processing load and speeding up the processing.

[0105] In the above embodiment, since the first cache 112 and the second cache 113 are stored in the information processing device 101, reference to the cache from other devices may be restricted depending on the situation. On the other hand, the third cache 131 of the service providing server 102 can be shared among a plurality of information processing devices 101 connected to the service provided by the service providing server 102 and a plurality of accounts registered to the service. Therefore, the third cache 131 can cache a variety of requests and responses when providing responses to requests from a plurality of information processing devices 101 and accounts, thereby increasing the hit rate.

[0106] Although the embodiment has been exemplified above, the embodiment is not limited thereto. For example, the above-mentioned operation flow is an example, and the embodiment is not limited thereto. If possible, the operation flow may be executed by changing the order of the processes, may include additional processes, or may omit some processes.

[0107] In the above embodiment, the information processing device 101 calls the main thread 401, the child thread 402, etc. from the browser 111 to use caches with different granularities. However, the embodiment is not limited to this. For example, in another embodiment, the first cache 112 and the second cache 113 may be integrated into one cache. For example, as shown in FIG. 4(a) above, when all processing for a request is executed in the main thread 401, the control unit 201 may register, in the first cache 112, the input data of the processing and the information of the execution result of the processing, which were registered in the second cache 113 in the above embodiment.

[0108] Furthermore, in another embodiment, the control unit 201 may execute a process of synchronizing information between the first cache 112 and the second cache 113. For example, the control unit 201 may execute a process of registering a record registered in the first cache 112 in the second cache 113, or may execute a process of registering a record registered in the second cache 113 in the first cache 112. This makes it possible to refer to input data and calculation results of multiple processes for generating a response corresponding to a request, for example, in the first cache 112 as well. Also, for example, it makes it possible to refer to a request and a response corresponding to the request, for example, in the second cache 113 as well. By configuring the cache in this way, depending on the implementation, it is possible to speed up the processing. For example, in the above embodiment, when the processing executed by the child thread 402 is also executed in the main thread 401, the execution results of multiple processes for generating a response can be obtained in the first cache 112 of the main thread 401, so that the processing in the main thread 401 can be executed at high speed.

[0109] In addition, in the above embodiment, an example is described in which the second cache 113 is provided for each child thread 402. In this case, since different data is accumulated in the second cache 113 for each child thread 402, data registered in the second cache 113 of other child threads 402 may not be available. However, the embodiment is not limited to this. For example, in another embodiment, the control unit 201 may execute a process of synchronizing the contents of the second cache 113 between the child threads 402 by registering data newly registered in a certain second cache 113 of a certain child thread 402 in the second cache 113 of the other child thread 402. Alternatively, the embodiment may be configured so that a plurality of child threads 402 refer to one common second cache 113.

[0110] Furthermore, in the above-described embodiment, an example is described in which the information processing device 101 executes processing via the browser 111. Therefore, the implementation form may be limited due to the specifications of JavaScript and WebWorker related to the browser 111. However, the embodiment is not limited to processing via the browser 111. For example, in another embodiment, the browser 111 may not be used. For example, the embodiment may be implemented in an application that executes drawing of a graph corresponding to a mathematical expression in the information processing device 101. In this case, the control unit 201 may execute processing by registering and managing the registered contents of the first cache 112 and the second cache 113 in one cache.

[0111] 9, if the first cache 112 is hit and the request is not an NG request, the process is terminated without requesting child thread 402 to process the request. However, in another embodiment, the child thread 402 may be requested to process the request even if the first cache 112 is hit and the request is not an NG request. For example, when there are not many requests and the control unit 201 has spare processing capacity, the child thread 402 may be made to process the request in this manner, so that the input data and execution results of the process can be accumulated in the second cache 113.

[0112] In the above embodiment, in the process of S1002, the control unit 201 operates, for example, as the execution unit 231. In addition, in the process of S909, the control unit 201 operates, for example, as the first storage unit 232. In the process of S1109, the control unit 201 operates, for example, as the second storage unit 233. In the process of S905, the control unit 201 operates, for example, as the reply unit 234.

[0113] Fig. 13 is a diagram illustrating a hardware configuration of a computer 1300 for realizing an information processing device 101 according to an embodiment. The hardware configuration for realizing the information processing device 101 of Fig. 13 includes, for example, a processor 1301, a memory 1302, a storage device 1303, a reading device 1304, a communication interface 1306, an input / output interface 1307, an input device 1311, and a display device 1312. The processor 1301, the memory 1302, the storage device 1303, the reading device 1304, the communication interface 1306, and the input / output interface 1307 are connected to each other via, for example, a bus 1308.

[0114] The processor 1301 may be, for example, a single processor, or a multi-processor or multi-core. The processor 1301 may operate as the control unit 201, the browser 111, the mathematical expression processing module 212, the main thread 401, the child thread 402 (processing module 213), and the like of the above-mentioned embodiment by reading and executing a program, for example. The processor 1301 also operates as the execution unit 231, the first storage unit 232, the second storage unit 233, and the reply unit 234 by using the memory 1302 to execute a program, such as a cache management program in which the procedure of the above-mentioned operation flow is described.

[0115] The memory 1302 is, for example, a semiconductor memory, and may include a RAM area and a ROM area. The storage device 1303 is, for example, a semiconductor memory such as a hard disk or a flash memory, or an external storage device. Note that RAM is an abbreviation for Random Access Memory. Also, ROM is an abbreviation for Read Only Memory.

[0116] The reader 1304 accesses the removable storage medium 1305 according to an instruction from the processor 1301. The removable storage medium 1305 is realized by, for example, a semiconductor device, a medium in which information is input and output by magnetic action, or a medium in which information is input and output by optical action. The semiconductor device is, for example, a Universal Serial Bus (USB) memory. The medium in which information is input and output by magnetic action is, for example, a magnetic disk. The medium in which information is input and output by optical action is, for example, a CD-ROM, DVD, Blu-ray Disc, etc. (Blu-ray is a registered trademark). CD is an abbreviation for Compact Disc. DVD is an abbreviation for Digital Versatile Disk.

[0117] The storage unit 202 includes, for example, a memory 1302, a storage device 1303, and a removable storage medium 1305. For example, the storage device 1303 stores the first cache 112 and the second cache 113.

[0118] The communication interface 1306 communicates with other devices according to instructions from the processor 1301. In one example, the communication interface 1306 may transmit and receive data to and from the service providing server 102 via the network 105 by wired or wireless communication. The communication interface 1306 is an example of the communication unit 203 described above.

[0119] The input / output interface 1307 may be, for example, an interface between a device that performs input and output. The input / output interface 1307 may be connected to an input device 1311, such as a keyboard, a mouse, or a touch panel that receives instructions from a user. The input / output interface 1307 is also connected to a display device 1312, for example. The display device 1312 may be a device that displays information, such as a display or a projector. For example, the display screen of FIG. 12 may be drawn on the display device 1312 connected to the input / output interface 1307. The display device 1312 is an example of the display unit 204 described above. The input / output interface 1307 may be connected to other output devices, such as an audio device such as a speaker and a printing device such as a printer.

[0120] Each program according to the embodiment is provided to the information processing device 101 in the following form, for example. (1) It is pre-installed in the storage device 1303. (2) Provided by a removable storage medium 1305. (3) Provided from a server 1330 such as a program server via the network 105.

[0121] In addition, in one example, the server 1330 may have the hardware configuration of the computer 1300 in FIG.

[0122] Note that the hardware configuration of the computer 1300 for realizing the information processing device 101 described with reference to FIG. 13 is an example, and the embodiment is not limited thereto. For example, a part of the above-mentioned configuration may be deleted, or a new configuration may be added. Also, in another embodiment, for example, a part or all of the functions of the above-mentioned control unit 201 may be implemented as hardware using FPGA, SoC, ASIC, PLD, or the like. Note that FPGA is an abbreviation for Field Programmable Gate Array. SoC is an abbreviation for System-on-a-chip. ASIC is an abbreviation for Application Specific Integrated Circuit. PLD is an abbreviation for Programmable Logic Device.

[0123] In the above, several embodiments are described. However, the embodiments are not limited to the above embodiments, and should be understood as including various modified and alternative forms of the above-mentioned embodiments. For example, it will be understood that the various embodiments can be embodied by modifying the components without departing from the spirit and scope of the embodiments. It will also be understood that various embodiments can be implemented by appropriately combining multiple components disclosed in the above-mentioned embodiments. Furthermore, it will be understood by those skilled in the art that various embodiments can be implemented by deleting some components from all the components shown in the embodiments, or by adding some components to the components shown in the embodiments.

[0124] The following supplementary notes are further disclosed regarding the above embodiment. [Appendix 1] if a correspondence between a request and a response corresponding to the request is not stored in a first cache, performing a plurality of processes for generating the response corresponding to the request; storing execution results of the plurality of processes in a second cache in association with input data for each of the processes; storing the response generated based on the execution results of the plurality of processes in the first cache in association with the request; Returning the response to the request. A cache management program that causes a computer to execute the process. [Appendix 2] storing execution results of the plurality of processes in the first cache in association with input data of each of the processes; 2. The cache management program of claim 1, further causing the computer to execute a process. [Appendix 3] if a correspondence between a second request and a second response in response to the second request is stored in the first cache, returning the second response read from the first cache; executing a plurality of processes for generating the second response in response to the second request, if a correspondence between the second request and the second response in response to the second request is not stored in the first cache; 3. The cache management program according to claim 1 or 2, further causing the computer to execute a process. [Appendix 4] when a correspondence relationship between input data of a first process among a plurality of processes for generating the second response in response to the second request and an execution result of the process corresponding to the input data of the first process is stored in the second cache, acquiring the execution result of the first process from the second cache; 4. The cache management program of claim 3, further causing the computer to execute a process. [Appendix 5] even if a correspondence relationship between input data of a second process among a plurality of processes for generating the second response in response to the second request and an execution result of the process corresponding to the input data of the second process is stored in the second cache, if the input data of the second process designates a process that satisfies a first condition, the execution result of the second process is not obtained from the second cache; 5. The cache management program according to claim 3 or 4. [Appendix 6] the second request is a request relating to mathematical processing; 6. A cache management program according to any one of appendix 3 to 5. [Appendix 7] Regarding the process to be stored in the second cache, if the execution result of the process satisfies a second condition, the input data and the execution result of the process are not stored in the second cache. 7. A cache management program according to any one of claims 1 to 6. [Appendix 8] a plurality of processes for generating the response in response to the request are executed by any one of a plurality of threads; the one thread stores an execution result of the process in the second cache allocated to the one thread in association with input data of each of the plurality of processes; 8. A cache management program according to claim 1, [Appendix 9] 9. The cache management program according to claim 8, wherein the one thread does not reference a cache allocated to another thread among the plurality of threads. [Appendix 10] If a correspondence between the request and the response corresponding to the request is stored in the first cache, the response corresponding to the request is obtained from the first cache. 10. The cache management program of claim 1, further causing the computer to execute a process. [Appendix 11] sending the request to a server if an error occurs in a plurality of processes for generating the response to the request; receiving the response from the server in response to the request; 11. The cache management program according to any one of appendixes 1 to 10, further causing the computer to execute a process. [Appendix 12] In response to receiving the request, execute a plurality of processes for generating the response in response to the request, and transmit the request to a server; receiving the response from the server in response to the request; 12. The cache management program according to any one of appendixes 1 to 11, further causing the computer to execute a process. [Appendix 13] storing the response received from the server in the first cache; 13. The cache management program according to claim 11 or 12. [Appendix 14] The server stores the response generated based on the execution results of the plurality of processes in response to the request in a third cache. 14. A cache management program according to any one of appendixes 11 to 13. [Appendix 15] a third response generated from a result of executing a plurality of processes in response to a third request from another computer is stored in the third cache in association with the third request; when the server receives the request from the computer and if the request matches the third request, the server notifies the computer of the third response as the response to the request. 15. The cache management program according to claim 14. [Appendix 16] The request is a request for mathematical processing. 16. A cache management program according to any one of claims 1 to 15. [Appendix 17] A server that distributes a cache management program according to any one of appendix 1 to 16. [Appendix 18] if a correspondence between a request and a response corresponding to the request is not stored in a first cache, performing a plurality of processes for generating the response corresponding to the request; storing execution results of the plurality of processes in a second cache in association with input data for each of the processes; storing the response generated based on the execution results of the plurality of processes in the first cache in association with the request; Returning the response to the request. 23. A computer-implemented cache management method comprising: [Appendix 19] an execution unit that executes a plurality of processes for generating the response in response to the request when a correspondence between a request and a response corresponding to the request is not stored in a first cache; a first storage unit that stores the response generated based on the execution results of the plurality of processes in the first cache in association with the request; a second storage unit that stores execution results of the plurality of processes in a second cache in association with input data of each of the processes; A reply unit that returns the response to the request; An information processing device comprising: [Explanation of symbols]

[0125] 100 Cash Management System 101 Information processing device 102 Service provider server 105 Network 111 Browser 112 1st Cache 113 2nd Cache 131 3rd Cache 141 Mathematical Processing Module 201 Control section 202 Storage section 203 Communications Department 204 Display section 212 Mathematical Processing Module 213 Processing Module 231 Executive Department 232 First Storage Unit 233 Second Storage Unit 234 Reply section 401 Main Thread 402 Child Thread 1300 Computer 1301 Processor 1302 Memory 1303 Storage device 1304 Reading device 1305 Removable storage media 1306 Communication Interface 1307 Input / Output Interface 1308 Bus 1311 Input Device 1312 Display device 1330 Server

Claims

1. Accepts requests based on input data, determining whether the request is a request for which the content of a response to the request changes each time the request is executed; When it is determined that the content of the response to the request changes each time the request is executed, the process corresponding to the request is executed without storing the request and the response obtained by executing the process corresponding to the request in a cache; returning a response to the request obtained by executing a process corresponding to the request; The process is executed by a computer, A cache management program, wherein a request whose response content changes each time the request is executed is a request whose input data corresponding to the request includes data that specifies a process including at least one of a random function and a shuffle function.

2. 2. The cache management program according to claim 1, wherein the request is a request relating to mathematical operations.

3. 1. A computer-implemented method for managing cache, comprising: receiving a request based on input data; determining whether the request is a request for which the content of a response to the request changes each time the request is executed; executing a process corresponding to the request without storing the request and the response obtained by executing the process corresponding to the request in a cache when it is determined that the content of the response to the request changes each time the request is executed; returning a response to the request obtained by executing a process corresponding to the request; Including, A cache management method in which a request whose response content changes each time it is executed is a request whose input data corresponding to the request includes data that specifies a process including at least one of a random function and a shuffle function.

4. Cache and Accepts requests based on input data, determining whether the request is a request for which the content of a response to the request changes each time the request is executed; When it is determined that the content of the response to the request changes each time the request is executed, the process corresponding to the request is executed without storing the request and the response obtained by executing the process corresponding to the request in the cache; returning a response to the request obtained by executing a process corresponding to the request; A control unit; Equipped with An information processing device in which a request whose response content changes each time the request is executed is a request in which input data corresponding to the request includes data specifying a process including at least one of a random function and a shuffle function.

Citation Information

Patent Citations

  • Device and method for relaying information and computer readable recording medium recording information relaying program

    JP2001014209A

  • Caching system

    JP2005018398A

  • Apparatus and method for making web application highly available

    JP2011164749A

  • Caching of dynamic content

    JP2014520336A

  • Server device, calculation method, and program

    JP2018049308A