Skip to content
Advertisement

Tag: performance

MySQL COMPRESS vs PHP gzcompress

I am developing a PHP application where large amounts of text needs to be stored in a MySQL database. Have come across PHP’s gzcompress and MySQL’s COMPRESS functions as possible ways of reducing the stored data size. What is the difference, if any, between these two functions? (My current thoughts are gzcompress seems more flexible in that it allows the

Why php generator is slower than an array?

According to comments from documentation: http://php.net/manual/en/language.generators.overview.php We can see that thanks to generators there is huge memory usage improvement (which is obvious), but there is also 2-3 times slower execution – and that is not so obvious to me. We gain memory usage improvement at the expense of time – which is not fine. So, why is php generator slower

Fastest Way to Serve a File Using PHP

I’m trying to put together a function that receives a file path, identifies what it is, sets the appropriate headers, and serves it just like Apache would. The reason I am doing this is because I need to use PHP to process some information about the request before serving the file. Speed is critical virtual() isn’t an option Must work

How well does FFmpeg scale? Any examples?

I’m currently working on the server side of an augmented reality project. It’s a lot like http://www.livingsasquatch.com/. I’m using PHP/MySQL and FFmpeg to capture the webcam video and encoding it to .flv. Basically Flash uploads the video as a long series of .jpg images. PHP then takes those images, generates a few thumbnails and passes them through FFmpeg which converts

Advertisement