For my work I have to develop a small Java application that parses very large XML files (~300k lines) to select very specific data (using Pattern), so I’m trying to optimize it a little. I was wondering what was better between these 2 snippets: OR Other details: These if statements are executed on each iteration inside a loop (~20k iterations)
Tag: optimization
Performance in Java through code? [closed]
First of all I should mention that I’m aware of the fact that performance optimizations can be very project specific. I’m mostly not facing these special issues right now. I’m facing a bunch of …
ResultSet: Retrieving column values by index versus retrieving by label
When using JDBC, I often come across constructs like I asked myself (and authors of code too) why not to use labels for retrieving column values: The best explanation I’ve heard is something concerning performance. But actually, does it make processing extremely fast? I don’t believe so, though I have never performed measurements. Even if retrieving by label would be