Skip to main content
4 events
when toggle format what by license comment
Mar 25, 2024 at 15:20 comment added Pikalek It's entirely possible; the best way to determine that is to profile your code & I should have led off with that. I was answering based on my own experience with using awt's .getRGB() for image processing, but as others have correctly pointed out, the first thing to do in addressing performance problems is to run the profiler.
Mar 25, 2024 at 14:18 comment added Vaillancourt @GrindingForReputation typically, memory allocation operations are slow slow, and should be avoided in tight loops.
Mar 25, 2024 at 9:58 comment added Grinding For Reputation There might be an issue into how im implementing it, because it does reduce the time from 2.9s to 2.8s. Moreover I found out after some debugging that the source of the large amount of time is infact entityArea.add(new Area(new Rectangle(x, y, 1, 1))) as suggested my bornander
Mar 24, 2024 at 21:19 history answered Pikalek CC BY-SA 4.0