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.
  • Comment on Re: Optimize Large, Complex JSON decoding

Replies are listed 'Best First'.
Re^2: Optimize Large, Complex JSON decoding
by Endless (Beadle) on Sep 19, 2013 at 01:30 UTC
    Thanks for your suggestions. As I'm still learning Perl, what do you recommend instead of
    my @interactions = $json_data -> {'interactions'}; # A scalar of a +n array of hashes
    I am parsing only 11846 records per second.