lescoste / iphototogallery3

iPhoto plugin to upload your pictures to a gallery 3 server
http://lescoste.net/blog/iphototogallery3
BSD 3-Clause "New" or "Revised" License
21 stars 3 forks source link

Export to server on local network takes ~1 minute per photo #11

Closed cvonwallenstein closed 14 years ago

cvonwallenstein commented 14 years ago

Great utility. I'm trying to determine why the export process is currently taking about one minute per photo, even though the server is on the local network. Photos are 4272 x 2848 (~5MB each). Packet capture shows that data is being transferred the whole time, but a file on the local network should be transferring much faster. Is there anything that can be done to speed up the process?

lescoste commented 14 years ago

I don't know but have you tried to increase the amout of memory allowed for php in your server php.ini. I have set it to 128 MB.

cvonwallenstein commented 14 years ago

Thanks for the comment. I double checked, and it is indeed at 128MB. It takes about 65 seconds for the picture to upload, and then 10-12 seconds for the "convert" process to run in Gallery before the next picture is processed. I've tried TCP tuning with only minor improvement. Using the flash uploader in the browser works very, very quickly (less than a second per photo). What would cause a big speed difference between the Flash uploader in Gallery3 and the iPhoto Exporter plugin?

lescoste commented 14 years ago

I see . The plugin uses a class called CFHTTPMessageCreateRequest. I will try to see if using a simplier method like NSURLConnection is faster. I'll let you know.

cvonwallenstein commented 14 years ago

Ok. Thanks for taking the time to look into it. Really enjoying the plugin so far!

lescoste commented 14 years ago

I think I fixed it in version 0.3.4. I removed a sleep loop from the original plugin. I'm not sure what it was used for ...

cvonwallenstein commented 14 years ago

Thanks! I will download the new version and report back.

cvonwallenstein commented 14 years ago

What a difference! The new version works fantastic, with no slowdown whatsoever. Thanks!