[phpa] Re: tmp file

On Fri, Dec 21, 2001 at 09:47:45AM +0100, Franck LABANVOYE wrote:
> 
> Hello
> 
> congratulations for your work....

Thanks!

> But could you explain me why php accelerator create file in the tmp
> directory? If script are read from shm, i don't see the necessity to create
> tmp file.

It's partly historical. When I did an initial 'proof of
concept' I cached to files as this was the most
straightforward thing to do. Then I experimented with 
different schemes for loading the files, found that they
performed all pretty much the same, but that things would
be much faster if I executed directly from the shm cache
rather than simply restoring compiled code from the cache. 
No one other than Zend was doing this, and so I then added
support for that. 

> it would be very nice, if phpa clear shm at stop.

Unless you want acceleration from the CGI PHP. Some weeks
ago I was about to abandon SHM support for the cgi 
version and do what you suggest, but by chance someone
emailed who was making use of the cgi version and 
that made me rethink the decision.  It could consider
making this a configuration option.

Cheers
Nick

------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: