controller/examples: Optimize compileRequest

Signed-off-by: Jesse Stuart <jesse@jessestuart.ca>