I need to load images as fast as possible in Python. What's the best way to do this?
I've tried quite a few things with numpy pre-allocation and multiprocessing, but nothing seems to be fast enough.
>pic semi-related
I learned the hard way you shouldn't try to decompress with Glib and load a PNG using Python.
What you want to do is find a library to do it for you. There is no shame in that.
>>59913489
any suggestions?
>>59914302
imlib2
>>59914302
>>59913489
is sklearn.externals.joblib.parallel any good?
>>59913457
>Jennifer Bitchwrance
She's the reason moot is gone. Fuck off why don't you
>>59914337
>unironically missing moot
>>59914337
1) her and like a dozen other people
2) it was the fault of the faggots that shared all those photos on 4chan. literally only retards and children don't understand the legal predicament hosting those images on 4chan would've put moot in. they could've put them practically anywhere else. moot was just unfortunate because he gave us a lot of latitude, assuming we would use better judgment to avoid him having to face enormous legal pressures.
clearly he was wrong to trust us.
>>59914320
thanks, this looks nice but it looks like the speed up is from keeping images in the cache, I have too many images to keep in memory.
>>59914337
>Bitchwrance
That wasn't even clever. "Whoreance" would've been better, even if obvious.
Also, she could get the dick.
>>59913457
>i need efficiency
>i'm using python
:thinking:
>>59914561
jesus, this. it's retarded attempts at cleverness like "Bitchwrance" that make me wish 4chan *did* go under.