Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    I will again say: time the code - print out how long it takes for each section of code and you will know where the bottleneck lies. helloworld's points are spot on, but things like calling...
  2. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    Did you profile the code? Add some println's in there to time how long it takes for each step in your process (you can use System.currentTimeMillis(), subtracting a start value from the current value...
  3. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    Again, how large are the files? The bottleneck could simply be the file size, that being said 3-5 minutes is quite a long time to read files several hundred MB's in size, unless your computer is...
  4. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    Reading files requires calls to the underlying system which are thought to be relatively expensive. Using a BufferedReader or reading in a buffered way reduces the number of these calls as it does so...
Results 1 to 4 of 4