Currently, the evaluate and custom_hash functions on Runtime take bytecode and santize and instantiate it each time the function is called. Among things, there are several lines of duplicated code.
We should change the new function to accept bytecode, or add an additional function, that does component validation and other checks once, and then lets us call either evaluate or custom_hash without having to include bytecode in the parameters.
Currently, the
evaluate
andcustom_hash
functions onRuntime
take bytecode and santize and instantiate it each time the function is called. Among things, there are several lines of duplicated code.We should change the new function to accept bytecode, or add an additional function, that does component validation and other checks once, and then lets us call either evaluate or custom_hash without having to include bytecode in the parameters.