Re: limit for mmaping for readfile (Bug #19749)
| From: | Wez Furlong | Date: | Wed, 21 Apr 2004 12:03:50 +0000 |
| Subject: | Re: limit for mmaping for readfile (Bug #19749) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9464@lists.php.net to get a copy of this message | ||
1MB it is.
--Wez.
----- Original Message -----
From: "Andi Gutmans" <andi@zend.com>
To: "Derick Rethans" <derick@php.net>
Cc: "Wez Furlong" <wez@thebrainroom.com>; <internals@lists.php.net>
Sent: Wednesday, April 21, 2004 12:51 PM
Subject: Re: [PHP-DEV] limit for mmaping for readfile (Bug #19749)
> At 01:49 PM 4/21/2004 +0200, Derick Rethans wrote:
> >On Wed, 21 Apr 2004, Andi Gutmans wrote:
> >
> > > >My patch is "nice" at this stage in the release because it is a
> > > >minimal change that can't hurt anything; tweaking the passthru
> > > >code is a bit more worrying :/
> > >
> > > In that case, I'd put a hardcoded limit after which you fallback to
> > > non-mmap()'ed reading and not add an INI option. Then you can add the
> > > tweaked code when you have time/energy.
> >
> >I would go for an INI setting because I can imagine situations were
> >you'd want to even lower this (hardcoded) 8MB limit to say 1MB before
> >falling back to non-mmap code.
>
> So go for a 1MB limit until we improve the code. I don't think we should
> add an INI setting if this is something we will eventually solve in our
code.
>
> Andi
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>