This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/1] msort : optimizing merge sort.


On Thursday 06 July 2017 04:38 PM, Ayush Mittal wrote:
> We have shared test case for this change with results(performance) .
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=21719

That test only shows the amount of improvement in the case that you've
optimized for, not the inputs that could get worse due to the additional
check.  You need a benchmark that exercises different kinds of input
arrays to determine what the impact is on those loads.  A good set of
inputs for this would be based on an existing and commonly used
application program that uses msort extensively on different kinds of
inputs.  If that is not possible, a set of inputs that exercises all of
the major branches in the code proportionately would be acceptable.  The
fast paths (such as this one, where the array is almost sorted)
typically get lower weight compared to other paths through the function.

Finally, the benchmark should be included in the patch as an addition to
benchmarks in the benchtests directory.  There is a benchtests/README
that describes how you can do that.

>> Also, please take a moment to review the contribution checklist[1] to
>> know the kind of information you need to include in your patch
>> submission.  For example this submission is missing a ChangeLog.
> 
> Regarding ChangeLog we are not sure about which ChangeLog to change.
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=21719

The contribution checklist I linked to below tells you what a ChangeLog
is; see "12. Properly Formatted GNU ChangeLog"

>>
>> [1] https://sourceware.org/glibc/wiki/Contribution%20checklist

Siddhesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]