Speed up signature map merge
Speed up signature map merge

Summary: Don't repeatedly read from a map inside a loop, read it once before the loop. This is manual loop invariant code motion.

Reviewed By: ssj933

Differential Revision: D19305433

fbshipit-source-id: 7044cc5e0304affb6486c8aa7703a8675a49be7a

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex