Re: Re: Fwd: little request :)

From: Date: Tue, 11 Feb 2014 17:55:12 +0000
Subject: Re: Re: Fwd: little request :)
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 2014-02-10 16:39, Lester Caine wrote:
Tjerk Meesters wrote:
This problem isn't about performance, not necessarily anyway; the primary problem that this rfc is attempting to solve is a string comparison function with the tightest possible Theta(given-length) runtime.
But it does perhaps show the performance improvement that could be made with the correctly engineered compare? The security problem compare is only required on a relatively small number of compares, while simple string compare is used a lot more extensively. A four or five fold improvement in speed may well result in improved performance in general, and by making that compare switch-able to always scan all a string it fulfils the security requirement as well? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
Userland developer here. How about using a new file extension for script only files like .phps? If you include a normal php file in it you can trigger a warning or error. This would keep BC. --- Robert Parker, Owner/Developer http://yamiko.org | [email protected] 360-773-0963

Thread (42 messages)

« previous php.internals (#72459) next »