wicket-pivot icon indicating copy to clipboard operation
wicket-pivot copied to clipboard

Optimization to improve the time and space complexity

Open tyagi85prashant opened this issue 8 years ago • 2 comments

change1:- Using HashSet (look-up is O(1)) for pathRenderedCache which is optimized compared ArrayList

change 2:- Calculation of leaf span Using recursion to optimize the method by reducing the number of object created

tyagi85prashant avatar Dec 15 '16 04:12 tyagi85prashant

Thanks! I love to see code that optimize something but I must admit that are rare the moments when something submit code that resolve a performance problem.

decebals avatar Dec 15 '16 07:12 decebals

Did you do any benchmarks? How much improvement is gained with this patch?

rototor avatar Dec 15 '16 09:12 rototor