> -----Original Message-----
> From: Rasmus Lerdorf [mailto:ras...@lerdorf.com]
> Sent: Thursday, November 25, 2010 10:46 AM
> To: Andi Gutmans
> Cc: Ilia Alshanetsky; Johannes Schlüter; da...@php.net; PHP Internals
> Subject: Re: [PHP-DEV] Re: Hold off 5.4
> 
> > Yes I agree. We may be able to skip this check for interned strings which
> would be nice and potentially eliminate performance impact somewhat but it's
> something that would need to be looked into. It's non-trivial but doable 
> (need to
> add a flag for interned strings whether they have a zero byte or not).
> 
> I'm not too worried about the performance impact here.  Functions that need
> these non-null strings need them because they are about to access the file
> system in some way.  The time it takes to check for nulls compared to the file
> system access time is so small that I think we can safely ignore performance
> issues.

Yes I thought about that too after I sent the email :) It is negligible 
compared to the expensive filesystem operation.

Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to