[Wellington-pm] comparison and assignment: insignificant optimisation

Grant McLean grant at mclean.net.nz
Mon Jun 16 14:05:24 PDT 2014


On Tue, 2014-06-17 at 01:35 +1200, Kent Fredric wrote:

> length() does involve a fair amount of low-level jumping, but its more
> or less a plumbing route that ends up returning the value of CUR

Not quite so rosy for UTF8 strings:

https://metacpan.org/source/RJBS/perl-5.20.0/utf8.c#L1132

But yeah still not worth worth worrying about unless profiling shows
it's a problem.

Cheers
Grant




More information about the Wellington-pm mailing list