News for hackers. Stuff that matters.
Re:AngularJS change detection – draft by saurabhnanda on Tuesday February 25, 2014 @12:13PM (#7298854)
Can anyone explain why/how the following statement is true?

    We can then change the slow field read from current.obj[current.field] to current.getter(current.obj) which triples the performance.
Re:AngularJS change detection – draft by SchizoDuckie on Tuesday February 25, 2014 @12:44PM (#7299091)
My guess would be that the array access method first parses the whole object as an array, breaking optimisations made possible with JIT compiling, whereas getters and setters are preoptimized because they're the actual standard way of accessing object properties.