develooper Front page | perl.perl5.porters | Postings from April 2014

Re: [perl #121230] process group kill on Win32 broken in 5.17.2,regression 5.18

Thread Previous | Thread Next
April 23, 2014 11:34
Re: [perl #121230] process group kill on Win32 broken in 5.17.2,regression 5.18
Message ID:
On 18 March 2014 13:46, H.Merijn Brand <> wrote:
> On Tue, 18 Mar 2014 13:15:11 +0100, demerphq <> wrote:
>> > The difference in parsing time between single and double quotes strings is
>> > infinitesimal
>> IMO there is no point in worrying about these kind of things unless
>> the string is very long.
> And not even then. I benched it years ago on several machines, and all
> bench results are in line-noise margins and differ per architecture.
> IIRC all big-endian boxes I tried on had a <1% preference for double
> quotes whereas little-endian boxes prefered single quotes.

Well no, when the string becomes long it starts being interesting to
not use a quoted string, or to use single quoted here docs.

When I checked last Perl has non-linear and degrading performance
parsing strings. The longer the string the slower it gets.

In practice unless the string is quite long (hundreds to thousands of
characters) it is not something you need to worry about at all. On the
other hand if you happen to be dealing with a case where you are
generating code with lots of long quoted strings you can see real
parsing performance gains by removing the strings.


perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About