Closed stuartskelton closed 8 years ago
Thank you for sending a PR. However, given that the code exists, I see no reason to remove it. Data::Fake is already very heavy on function calls, which are slow in Perl. Saving a _transform
call to produce literal values or to run a code reference cuts down on unnecessary function calls, which speeds up generation. I don't mind a minor bit of duplication for that benefit.
That is quite fair.
Thanks for being so understanding.
I have removed some duplicated code by using _transform to do some recursion, as _transform already does this unpacking already.