activeldap/activeldap — pull request #28 by mihu (2012-01-03 12:24:12+00:00)
Title: cut down model initialization time

The main idea is to go around hooked setter and slow respond_to? method.
The bonus is remove of find_every from dirty module, because we are no
longer dirtying when initializing.

I had to change the "n times" to run benchmark and get sane results. The benchmark results follows

before
``` user system total real
search 100 entries 0.760000 0.110000 0.870000 ( 1.281416)
instantiate 1 entry 0.240000 0.010000 0.250000 ( 0.326925)
```

after
``` user system total real
search 100 entries 0.680000 0.100000 0.780000 ( 1.154310)
instantiate 1 entry 0.120000 0.000000 0.120000 ( 0.155008)
```