Category: PHP

nanoserv 2.1.1 is out !

November 30th, 2011
The main changes in this version are :Added asynchronous HTTP server class (see handlers/HTTP/Server)Speed optimizations in core and HTTP, 10-12% more reqs/s with ab -k -c200Fixed stream write buffers and Socket::Write_From_Stream()Fixed dela… more »

strlen vs. isset

September 26th, 2010
I've been working on new performance optimizations in nanoserv 2.1.1-dev in the last few days, and I found this one interesting enough to write about it ... Nanoserv uses buffering for all socket write operations, and until now it was using strlen(… more »

libevent for PHP

February 3rd, 2010
Libevent is a library that provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Recently, an extension emerged in PECL (link) that provides bindings between libevent… more »

nanoserv, bloat and performance

February 2nd, 2010
When software evolves, it often gain features and flexibility, but these also means bloat. And bloat leads to bad performance. Sometimes apps get so much bloated and slow that they just become less and less attractive. I remember using and enjoying the… more »