davialexandre/AttributesBackupBehavior — pull request #1 by TXGruppi (2012-01-12 14:33:24+00:00)
Title: Some speed enhancement

Moved the condition for isNewRecord to be the first test to run on each method

Replaced array_key_exists (slower) with isset (faster)

### isset

real 0m2.667s
user 0m2.653s
sys 0m0.012s

real 0m2.671s
user 0m2.656s
sys 0m0.012s

real 0m2.699s
user 0m2.680s
sys 0m0.014s

### array_key_exists

real 0m13.695s
user 0m13.657s
sys 0m0.032s

real 0m14.320s
user 0m14.275s
sys 0m0.034s

real 0m14.293s
user 0m14.230s
sys 0m0.041s