help-gnu-utils
[Top][All Lists]
Advanced

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

Re: [PATCH] sharutils-4.15.2/src/uuencode.c


From: Bruce Korb
Subject: Re: [PATCH] sharutils-4.15.2/src/uuencode.c
Date: Sat, 18 Jun 2022 06:49:11 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

1. have you verified that the input buffer has the extra 2 bytes and that it's okay to scribble there?

2. have you run timing tests on the fully optimized code to see if it actually saves some microseconds? Long, long ago, someone came up with this code, presumably after doing some analysis. I've never looked at the compiled output, so I can't answer. :)

3. you do realize that there's almost nobody left on the planet using this, right?

On 6/18/22 05:01, Stefan Kanthak wrote:
Remove the almost duplicate code to process the last 1 or 2 input characters;
Access each input character only once, not twice;
Don't decrement 'in_len' AND increment 'in' inside the loop, one
loop counter is enough.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]