Optimizing Java worker speed-wise
<p>I've got a Java worker that handles a lot of data. It waits on a Redis queue in main() and then calls different functions to handle the data depending on type.</p>

<p>I've got two questions on optimizing the code:</p>

<ol>
<li>Would it be better to have private static class variables and use them to send data to methods instead of using function arguments?</li>
<li>Would it speed up execution time if variables used in these often-called methods would be private static on class instead of declared always over again when entering the method?</li>
</ol>

<p>Thanks</p>
