http://www.perlmonks.org?node_id=1054752


in reply to Optimize Large, Complex JSON decoding

Do not, for example, copy the "interactions" into a separate array (@interactions) ... iterate directly over the elements in the array within the decoded JSON content.