PyCharm IDE is very slow on debug Python reading small pickle file
<p>Debug takes sometimes 10 seconds. The problem starts after reading 30mega + 5 mega pickles, with with pdb debugging is fine.
Even on lines of 'print'</p>

<p>any suggestions?</p>

<pre><code>if __name__ == "__main__":
    print 'loading files...',
    with open(fname1, 'rb') as handle: items = pickle.load(handle)
    with open(fname2, 'rb') as handle: sentences_by_id= pickle.load(handle)
    print ' done!'
</code></pre>