1. A method comprising, by one or more computing devices: modifying a decision tree by annotating each decision in the decision tree with instructions determined based on statistics collected during evaluation of the decision tree; and generating an executable version of the decision tree, the executable version comprising executable code optimized based on the instructions.