<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>1).I was going through the code of <b>python pickle</b> to search any optimization possibility.But the only thing that I found very alarming was again the import time(I tried with lazy-import but it didn't helped much.)<br><br></div>I found py3 to be ~45 times slower on<b> initial imports(very raw measure..using "time." ) </b>as compared to py2 on an usual example.<br><br></div>py3-><br>./python -c '<br>favorite_color = { "lion": "yellow", "kitty": "red" }<br>pickle.dump( favorite_color, open( "save.p", "wb" ) )'<br></div><div>0.009715557098388672(time taken to do initial imports...measured using <b>time.time()</b> )<br></div><div><br></div>py2-><br></div>./python -c '<br>favorite_color = { "lion": "yellow", "kitty": "red" }<br>pickle.dump( favorite_color, open( "save.p", "wb" ) )'<div>0.000236034393311(time taken to do initial imports...measured using <b>time.time()</b> )<br><br></div><div>Do you have any thought/ideas on improving this?<br><br><br></div><div>Thank You.<br></div></div>