主权项 |
1. A method implemented at least in part by a computer, the method comprising:
receiving a request to execute software that includes source code, wherein the source code is a script file for a page of a website for which an explicit reference to the script file has not been encountered; in response to the request, determining whether second code has already been generated from the source code and stored in nonvolatile storage, wherein determining whether the second code has already been generated from the source code and stored in nonvolatile storage comprises checking for the second code in a known location of the nonvolatile storage, the known location derived from a reference that identifies a source location of the source code, the source location reachable over a network; if the second code has already been generated prior to receiving the request, performing a first set of actions, comprising: obtaining the second code, and executing the second code or code derived therefrom; and if the second code has not already been generated prior to receiving the request, performing a second set of actions, comprising: obtaining the source code, generating the second code from the source code, executing the second code or code derived therefrom, if the second code has not already been generated prior to receiving the request, performing a third set of actions, comprising:
storing the second code in the nonvolatile storage for use in subsequent execution of the software; and memory mapping a file that includes the second code and sharing the file, via the memory mapping, with a plurality of processes. |