Add cache for defaultStyleSheet #167

merged 2 commits into from Apr 11, 2012


None yet
2 participants

tonycn commented Apr 11, 2012

hi, bother you again.

Run a time profiling and found [DTCSSStylesheet defaultStyleSheet] taking 13% (about 900ms) when loading a table view with about 30 cells of rich text. Tried adding a cache for defaultStyleSheet, much better now.

This comment has been minimized.

Show comment Hide comment

odrobnik Apr 11, 2012


Good catch!


odrobnik commented Apr 11, 2012

Good catch!

odrobnik added a commit that referenced this pull request Apr 11, 2012

Merge pull request #167 from tonycn/master
Add cache for defaultStyleSheet

@odrobnik odrobnik merged commit b063124 into Cocoanetics:master Apr 11, 2012

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