title: speed of decoding and encoding json in perl
body: <p>I'am working on a small perl script. And I store the data using JSON.</p>
  
  <p>I decode the JSON string using <code>from_json</code> an encode with <code>to_json</code>.</p>
  
  <p>To be more specific: </p>
  
  <p>The data scale could be something like <strong>100,000</strong> items in a hash</p>
  
  <p>The data is stored in a file in the disk.</p>
  
  <p>So to decode it, I'll have to read it from the disk first</p>
  
  <hr>
  
  <p>And my question is: </p>
  
  <p>There is a huge difference in the speed between the decoding and encoding process.</p>
  
  <p>The encoding process seems to be much faster than the decoding process.</p>
  
  <p>And I wonder what makes that difference ?</p>