[18/n] codegen: encoder: avoid some deepcopies

Bug: 177214396

We don't actually need to deepcopy if we don't generate any code that
does any actual transformation. Check for that, and skip copying if so.

TODO: Also remove deepcopies when transform_XX doesnt actually do
anything

Change-Id: I25d34e504d78ba6e05aeea05e455042140846410
1 file changed
tree: 45def4a69d1c84d8346341ffd1ad4b3b28d41696
  1. registry/