performance - Speeding Up sequential Puts in Java TreeMap -
in application working on @ moment, 1 of 1 of time consuming functions put()
operation in treemap
(~30% of runtime).
often these calls put()
invoked sequentially function, put()
function calls ordered keys. of course lead lot of rebalancing in rb-tree, contributes runtime.
is there (easy) way speedup application?
your first attempt @ optimisation should switch concurrentskiplistmap. although may make no difference , might make things slower should worth trying other 'map' implements 'sortedmap' (presumably reason using 'treemap'.
after looking special custom implementation of 'map' faster @ adding sorted new entries..
Comments
Post a Comment