jcombs_31 Posted October 27, 2009 Share Posted October 27, 2009 Anyone have experience installing and using this extension? I was thinking about creating a progress bar for file uploads because the project I'm working on will have rather large upload sizes, roughly 2-10 MB. I was reading about APC and I'm installing it on my dev box now. Just curious if anyone has experimented with it. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted October 27, 2009 Share Posted October 27, 2009 You should always be running APC (or at least some sort of opcode cache) in a production environment. It'll speed up things up considerably. It's also nice being able to cache things in memory instead of on the disk. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted October 27, 2009 Share Posted October 27, 2009 As to the file upload progress that it provides, the last time I looked, it was still single-threaded and could only provide the status for one upload at a time. Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted October 27, 2009 Author Share Posted October 27, 2009 Thanks guys, I've installed it on my dev and production servers. Quote Link to comment Share on other sites More sharing options...
keldorn Posted October 28, 2009 Share Posted October 28, 2009 [its] single-threaded and could only provide the status for one upload at a time. Does that mean it can only show the upload progress for one person at a time? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted October 28, 2009 Share Posted October 28, 2009 Correct. In fact if a new upload is started while an existing one is in progress, the status of the new upload replaces that of any previous upload. Note that the file upload tracking is not threadsafe at this point, so new uploads that happen while a previous one is still going will disable the tracking for the previous. In order to display the upload status for a specific uploaded file in the correct client, it would in fact require that the client know and supply a unique identifier with the HTTP requests being made to fetch, update, and display the status. On the server, this unique id would used to retrieve the correct upload status that APC would (future tense, it currently does not do this) maintain for each file concurrently being uploaded. The file name could be used as the identifier, except if two people happen to be uploading a file with the same name at the same time. Quote Link to comment Share on other sites More sharing options...
keldorn Posted October 28, 2009 Share Posted October 28, 2009 Correct. In fact if a new upload is started while an existing one is in progress, the status of the new upload replaces that of any previous upload. Ok, well it probably worthless to use then. Imagine if Youtube were using it, it would be switching between hundreds of file upload progresses every few milliseconds. It would be hilarious and pretty useless. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted October 28, 2009 Share Posted October 28, 2009 Imagine if Youtube were using it, it would be switching between hundreds of file upload progresses every few milliseconds. That's exactly like a CPU works... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.