Mailspring/spec/models
Ben Gotow 9e14f2207f perf(accounts): Use cached contact objects in accountForEmail
This method is called for every contact on a thread in the thread list, so I figured we should see if one version was faster. I ran this test code:

```
d = Date.now(); for(var ii = 0; ii < 10000; ii ++){ $n.AccountStore.accountForEmail("ben.gotow@gmail.com") }; console.log(Date.now() - d);
```

The other approach which calls meUsingAlias takes `3784ms`, and this version which uses the alias contacts cached in aliases() only takes `264ms`. Confirmed that the tests still pass.
2016-02-07 11:23:19 -08:00
..
category-spec.coffee
contact-spec.coffee perf(accounts): Use cached contact objects in accountForEmail 2016-02-07 11:23:19 -08:00
event-spec.coffee fix(db): Allow string attributes to be null. Never coerce to "" 2016-02-05 13:49:18 -08:00
file-spec.coffee
message-spec.coffee
model-spec.coffee
mutable-query-result-set-spec.coffee DataView => ListDataSource 2016-01-14 12:26:54 -08:00
query-range-spec.coffee
query-spec.coffee More database-related spec fixes 2016-01-25 11:35:23 -08:00
query-subscription-pool-spec.coffee
query-subscription-spec.coffee perf(accounts): Cache accountForId - need ordered map... 2016-01-29 00:42:56 -08:00
thread-spec.coffee More database-related spec fixes 2016-01-25 11:35:23 -08:00