US 9,811,321 B1
Script compilation
Jari Juhani Karppanen, Seattle, WA (US)
Assigned to Amazon Technologies, Inc., Seattle, WA (US)
Filed by Amazon Technologies, Inc., Seattle, WA (US)
Filed on Sep. 22, 2015, as Appl. No. 14/861,705.
Int. Cl. G06F 9/45 (2006.01); H04L 29/08 (2006.01); G06F 17/30 (2006.01)
CPC G06F 8/41 (2013.01) [G06F 17/30097 (2013.01); H04L 67/34 (2013.01)] 25 Claims
OG exemplary drawing
 
1. A system comprising:
a data store configured to store:
a first set of computer-executable instructions,
one or more pre-compiled chunks, wherein each of the one or more chunks comprises portions of a script compiled into computer-executable instructions, and
one or more chunk hashes, each of the one or more chunk hashes corresponding to a respective chunk of the one or more chunks; and
a processor in communication with the data store, the processor, when executing the first set of computer-executable instructions, configured to:
receive, from a rendering engine of a browser application executing on a client computing device, a request to compile a first script, the first script comprising a first one or more lines of source code that are compilable into computer-executable instructions;
divide the first script into at least a first portion and a second portion, each portion comprising a respective subset of the first one or more lines of source code;
calculate a first portion hash based at last in part on the first portion and a second portion hash based at least in part on the second portion;
obtain, from the data store, the one or more chunk hashes;
determine that a first chunk hash of the one or more chunk hashes matches the first portion hash;
determine that none of the one or more chunk hashes matches the second portion hash;
obtain, from the data store, a first chunk corresponding to the first chunk hash;
compile the second portion into a second chunk;
assemble the first chunk and the second chunk into a compiled set of computer-executable instructions corresponding to the first script; and
transmit the compiled set of computer-executable instructions to the rendering engine.