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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -