B
Ben_
Hello,
I was reading "IBM WebSphere V5.0 Performance, Scalability, and High
Availability" redbook, when the following assertions hit my mind:
(1) "use of ? : for a conditional check instead of if-then provides better
performance for most JVMs"
(2) "When iterating n items, iterating from n-1 to 0 instead of 1 to is
quicker for most JVMs"
There is no explanation as about why it would provide with better
performance.
Can you fill the gap ?
Thanks.
Ben.
I was reading "IBM WebSphere V5.0 Performance, Scalability, and High
Availability" redbook, when the following assertions hit my mind:
(1) "use of ? : for a conditional check instead of if-then provides better
performance for most JVMs"
(2) "When iterating n items, iterating from n-1 to 0 instead of 1 to is
quicker for most JVMs"
There is no explanation as about why it would provide with better
performance.
Can you fill the gap ?
Thanks.
Ben.