title: Web worker with persistent data
body: <p>I am building a web application with large amounts of json data.</p>
  
  <p>The data will be filtered and shown in a table and ideally I would like the filtering to be done by a web worker.</p>
  
  <p>However, from what I've read transferring json data between the parent and the worked also causes overhead so I am wondering:</p>
  
  <p>Is it possible for a worker to load the json data once, cache it and then make the data persistent between calls?</p>
  
  <ol>
  <li>During page load the parent created a worker</li>
  <li>Then it asks the worker to load and cache the json data</li>
  <li>When the user inputs different filters the parent can ask the worker to return only the relevant data.</li>
  </ol>
  
  <p>Is this possible, and does it make sense?</p>
  
  <p>/Patrik</p>