lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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