[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Speed optimized base64 encoder for Lua 5.3
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 4 Nov 2014 15:38:15 -0200
> You can avoid allocating 2 copies of s doing:
>
> [...]
>
> I suspect the if statements are faster than the padding gymnastics.
Did you try that? I did (encoding a text file with 4.3MB), and could
not measure any difference :-( (About clarity, the ifs seem more
gymnastical than the padding...)
-- Roberto