> On 16 Dec 2024, at 14:02, John Naylor <johncnaylo...@gmail.com> wrote:
> 
> Sorry, I forgot this part earlier. Yes, let's have the private function.

PFA v6.

I was poking around intarray and trying not to bash everything. It seems to me 
that overall code readability should be seriously reworked. Even if no one is 
going to invent anything new around this code. Looks like overall project code 
standards matured far above, but this particular extension is forgotten. There 
is a lot of useless checks and optimizations for n < 2, copying data to new 
allocation when it's not necessary, small inconsistencies etc.

I don't think it's a matter of this particular thread though.


Best regards, Andrey Borodin.

Attachment: v6-0001-Use-specialized-sort-facilities.patch
Description: Binary data

Attachment: v6-0003-prefer-non-resizing-to-constructing-empty-array.patch
Description: Binary data

Attachment: v6-0002-Use-PREPAREARR-where-possible.patch
Description: Binary data

Reply via email to