Performance improvement for default now return #3

Merged
merged 1 commit into from Jun 4, 2013

Conversation

Projects
None yet
2 participants
Contributor

michaelpetrov commented Jun 3, 2013

This is a quick modification that looks up the now value only if the transformedValue is nil when it's about to be returned. In our app, Couple, we noticed a slowdown from the repetitive lookup of the now value at every relative date transform which happens a lot when you scroll through our timeline of messages.

Contributor

michaelpetrov commented Jun 3, 2013

Actually, hold on with the merge, there are a few issues with the code and it pulled in an extra commit I didn't intend to add.

Contributor

michaelpetrov commented Jun 3, 2013

Ok, it's ready to go now - the commit should be clean.

billgarrison merged commit b19570d into billgarrison:master Jun 4, 2013

Owner

billgarrison commented Jun 4, 2013

Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment