note 49317 added to function.dio-open

From: Date: Mon, 24 Jan 2005 00:13:07 +0000
Subject: note 49317 added to function.dio-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-83846@lists.php.net to get a copy of this message
Please note that dio_open()/dio_write()/dio_close() is *faster* than fopen()/fwrite()/fclose() for files. fwrite() has to manage a 8k buffer, while dio_write() just issue a single write(). The end result is less system calls and less memory access. Also, giving the full size to write() as with dio_write() let filesystems properly use preallocation in order to avoid fragmentation. ---- Manual Page -- http://www.php.net/manual/en/function.dio-open.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49317 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49317&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49317&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49317&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49317&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49317&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49317&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#83846) next »