By puredanger
via ahmadsoft.org
Published: Jul 31 2008 / 17:01
Recently, while working on the design of a high-performance data structure in Java, I made a startling discovery about the performance of ArrayList.removeAll. Namely, that the average runtime performance of this method under Sun's Java 6 SDK is O(ns), where n is the size of the array list and s is the number of items to remove! Worst case performance is an even more dismal O(n2).
Add your comment
Voters For This Link (20)
-
puredanger -
bloid -
SnypeTEST -
dwdyer -
mswatcher -
mrsolutions -
dgilbert -
yardena -
galiel -
plunchete -
kieronwilkinson -
behrangsa -
htowninsomniac -
javanperl -
shamsm -
thinkingserious -
alessios -
pulesen -
wheazel -
davneter


