30.03.2019, 23:17, "George Spelvin" :
> On Sat, 30 Mar 2019 at 19:38:26 +0100 greh k-h wrote;
>> On Sat, Mar 30, 2019 at 07:43:53PM +0300, Andrey Abramov wrote:
>>> Replace int type with size_t type of the size argument
>>> in the swap function, also affect all its dependencies.
>>
>> This says
On Sun, Mar 31, 2019 at 10:00:18AM +0300, Andrey Abramov wrote:
> 30.03.2019, 23:17, "George Spelvin" :
> > On Sat, 30 Mar 2019 at 19:38:26 +0100 greh k-h wrote;
> >> On Sat, Mar 30, 2019 at 07:43:53PM +0300, Andrey Abramov wrote:
> >>> Replace int type with size_t type of the size argument
> >>>
This is the logical continuation of the "lib/sort & lib/list_sort:
faster and smaller" series by George Spelvin (added to linux-next
recently).
Since Spectre mitigations have made indirect function calls more
expensive, and the previous patch series implements the default
simple byte copies withou
Replace swap_eh_frame_hdr_table_entries with built-in one, because
swap_eh_frame_hdr_table_entries does a simple byte to byte swap.
Since Spectre mitigations have made indirect function calls more
expensive, and the default simple byte copies swap is implemented
without them, an "optimized" custom
Replace relaswap with built-in one, because relaswap
does a simple byte to byte swap.
Since Spectre mitigations have made indirect function calls more
expensive, and the default simple byte copies swap is implemented
without them, an "optimized" custom swap function is now
a waste of time as well
Replace dx_leaf_sort_swap, swap_refcount_rec and swap_xe functions
with built-in one, because they do only a simple byte to byte swap.
Since Spectre mitigations have made indirect function calls more
expensive, and the default simple byte copies swap is implemented
without them, an "optimized" cus
Replace swap_dirty_idx function with built-in one,
because swap_dirty_idx does only a simple byte to byte swap.
Since Spectre mitigations have made indirect function calls more
expensive, and the default simple byte copies swap is implemented
without them, an "optimized" custom swap function is no
Replace int type with size_t type of the size argument
in the swap function, also affect all its dependencies.
It's always been weird that sort() takes a size_t element size,
but passes an int size to (*swap)(). Not a bug because we don't
sort objects >2GB large, but it's ugly.
Signed-off-by: And