Java API Method Run Times

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-06-17T21:22:28Z Indexed on 2010/06/17 21:33 UTC
Read the original article Hit count: 149

Filed under:
|
|
|

Is there a good resource to get run times for standard API functions? It's somewhat confusing when trying to optimize your program. I know Java isn't made to be particularly speedy but I can't seem to find much info on this at all.

Example Problem: If I am looking for a certain token in a file is it faster to scan each line using string.contains(...) or to bring in say 100 or so lines putting them to a local string them performing contains on that chunk.

© Stack Overflow or respective owner

Related posts about java

Related posts about optimization