bug-gnustep
[Top][All Lists]
Advanced

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

[bug #37130] NSArray does not implement sorting and insertion assuming s


From: Thomas Davie
Subject: [bug #37130] NSArray does not implement sorting and insertion assuming sorted
Date: Sat, 18 Aug 2012 14:55:35 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25

Follow-up Comment #4, bug #37130 (project gnustep):

I can see the argument for wanting an in place merge sort there.  The reason I
chose not to do that was because an in-place merge sort is slower
O(n*log(n)^2) in the worst case, though the extra allocation and copying may
offset that.  I can't say I benchmarked both solutions, so it may be that
doing it in-place is in fact fast enough, and consumes significantly less RAM
for large arrays.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37130>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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