发明名称 Generating and caching software code
摘要 Aspects of the subject matter described herein relate to generating and caching software code. In aspects, a target device may receive software to install. The software may include source code that has not been compiled. The target device may install the software and indicate the source code of the package is to be compiled into intermediate or executable code that is persistently stored. If the target device receives a request to execute the software prior to it being compiled, the target device may compile and execute the software without delay. If the target device receives a request to execute the software after it is compiled, the target device may obtain and execute the compiled code. The behavior above may also be applied to scripting code obtained from a server remote to the target device.
申请公布号 US9110751(B2) 申请公布日期 2015.08.18
申请号 US201213371479 申请日期 2012.02.13
申请人 Microsoft Technology Licensing, LLC 发明人 Fisher Jomo;Jackson Michael Wayne;Kilic Yunus;Lucco Steven Edward;McGatha Jesse D.;Miadowicz Jedrzej Z.;Steiner Steven J.
分类号 G06F9/45;G06F9/445;G06F9/44 主分类号 G06F9/45
代理机构 代理人 Sulllivan Kevin;Drakos Kate;Minhas Micky
主权项 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.
地址 Redmond WA US
您可能感兴趣的专利