thirdy / durian

Path of Exile Items watcher
http://thirdy.github.io/durian/
GNU General Public License v2.0
35 stars 10 forks source link

high CPU usage #46

Closed zocke1r closed 8 years ago

zocke1r commented 8 years ago

When ever durian has to display search results, the CPU usage jumps up to the point that it uses around 25% of my CPU performance

thirdy commented 8 years ago

yep high indeed. I might have code that shouldn't be in the code for displaying the search result table.

zocke1r commented 8 years ago

it is the art renderer which causes this, because the moment i turn of item art the cpu usage drops to acceptable

thirdy commented 8 years ago

i see. thanks for letting me know

thirdy commented 8 years ago

It's this line in ArtColumnRenderer.java:

table.setRowHeight(row, image.getIconHeight());

re-adjusting the row height is apparently expensive and i've placed it in the wrong place

thirdy commented 8 years ago

fixed now wit 0.6.0, let me know how it goes