[Dovecot] Ongoing performance issues with 2.0.x

Karsten Bräckelmann guenther at rudersport.de
Wed Nov 17 23:23:23 EET 2010


On Wed, 2010-11-17 at 20:55 +0100, Ralf Hildebrandt wrote:
>   my ($type, $data) = ($1, $3);
> to
>   my ($type, $data) = ($1, $4);
> since I added another pair of ()

Just use non-capturing grouping instead. (?:foo)


-- 
char *t="\10pse\0r\0dtu\0. at ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}



More information about the dovecot mailing list