Re: To increase speed on manipulating big arrays in Java with minimal bounds checking, ...



Chris Uppal wrote:
Thomas Hawtin wrote:


This sort of low level optimisation is not something to be concerned
about.


Unless, of course, you are manipulating large amounts of data and the
application is running too[*] slow.

and you have investigated the slowness and found that it is due to bounds checking.


Which is a perfectly reasonable scenario.

    -- chris

([*] for any of several possible values of "too", eg:
    - three times slower than the legacy application we are trying to replace.
    - it takes a week to run, but we need to run it once per day.
    - it takes 120 millisecs to run, but I need to refresh the frame 25
        times/second.
    - it takes several hours to run, so any significant speedup would be useful
    - ...
)




.



Relevant Pages