Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29344 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5096 invoked by uid 1010); 8 May 2007 17:42:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5081 invoked from network); 8 May 2007 17:42:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2007 17:42:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2304] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/BC-01189-496B0464 for ; Tue, 08 May 2007 13:42:47 -0400 Received: (qmail 37604 invoked by uid 98); 8 May 2007 17:42:44 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3220. Clear:RC:1(127.0.0.1):. Processed in 0.081696 secs); 08 May 2007 17:42:44 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 8 May 2007 17:42:44 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Tue, 8 May 2007 12:42:44 -0500 (CDT) Message-ID: <46926.216.230.84.67.1178646164.squirrel@www.l-i-e.com> In-Reply-To: References: <0E.B4.18102.F9DB9264@pb1.pair.com> <463F9FD0.3030009@zend.com> <463FA701.5030707@pooteeweet.org> Date: Tue, 8 May 2007 12:42:44 -0500 (CDT) To: "Derick Rethans" Cc: "Lukas Kahwe Smith" , "Stanislav Malyshev" , "Mathias Bank" , internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] serialize and cache handling From: ceo@l-i-e.com ("Richard Lynch") On Tue, May 8, 2007 1:17 am, Derick Rethans wrote: > On Mon, 7 May 2007, Lukas Kahwe Smith wrote: > >> Stanislav Malyshev wrote: >> > > can write this data to disk. So, you needs 20MB. If serialize >> (and of >> > > course unserialize) would be able to write directly to disk (or >> read >> > > directly from disk), you only needs 10MB. >> > >> > Actually having serialize/unserialize be able to write directly to >> a stream >> > and read directly from a stream might be interesting, would >> probably improve >> > working with things like large sessions or caching large data >> substantially. >> >> Indeed, especially since this is the most common use case. Maybe it >> should >> optionally also return an md5 of the written data. > > If we're to add this, make sure writes to the files are atomic. Is this suggesting that the entire 80M upload has to be done in a single operation?... Or is the md5/sha1 computed chunk by chunk, in parallel, with writing buffered data to the disk? Cuz if it's the former, I don't see that working out too well for ginormous uploaded files... Which people probably shouldn't be doing over HTTP anyway, but they do, and that's the reality one has to deal with... Apologies if I'm being alarmist and totally mis-reading this through my ignorance. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?