发明名称 Context-sensitive optimization level selection
摘要 A method for selecting a performance optimization level for program code segments (e.g., JavaScript code) embedded in interactive webpages according to the origin (e.g., domain) of the webpages is disclosed. The information on historic usage behavior on webpages from the same origin is collected. The historic usage behavior can be specific to the current user or an average or aggregated behavior across many users who have visited webpages from the same origin. The historic usage information is used to select an appropriate level of optimization to achieve the maximum performance improvement for the least amount of compilation cost. The selected optimization level can be adjusted over time based on a measure of actual performance improvement resulted from the different levels of optimization that had been carried out during prior visits.
申请公布号 US9134978(B1) 申请公布日期 2015.09.15
申请号 US201313933377 申请日期 2013.07.02
申请人 Google Inc. 发明人 Roskind James A.
分类号 G06F17/22;G06F9/45 主分类号 G06F17/22
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 1. A computer-implemented method comprising: receiving, from a first server, one or more segments of program code embedded in a webpage having an origin; receiving a recommendation from a second server for an optimization level for the webpage, the recommendation being based on one or more performance improvements that have resulted from one or more levels of optimization being performed on the one or more segments of code; selecting a level of optimization for the one or more segments of program code in advance of compilation of the segments of program code based on, at least, the recommendation; and performing, by one or more computers, the selected level of performance optimization on the one or more segments of program code.
地址 Mountain View CA US