in reply to Re: Micro optimisations can pay off, and needn't be a maintenance problem
in thread Micro optimisations can pay off, and needn't be a maintenance problem
The benchmark test cases include overhead for object creation. That might skew the test results a bit.
Getters and setters aren't benchmarked individually. Instead, the benchmark tests call getters and setters an equal number of times. But in the Z Buffer Demo getters seem to predominate (based on a quick read the code). Intuitively, getters are going to be faster than setters, perhaps enough so to explain a factor of 6 improvement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Micro optimisations can pay off, and needn't be a maintenance problem
by pilgrim (Monk) on Nov 14, 2002 at 23:28 UTC |