{"action":"created","issue":{"url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/551","labels_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/551/comments","events_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/551/events","html_url":"https://github.com/TTTAttributedLabel/TTTAttributedLabel/issues/551","id":93284115,"number":551,"title":"Performance problems with enabledTextCheckingTypes and cells","user":{"login":"mRs-","id":736421,"avatar_url":"https://avatars.githubusercontent.com/u/736421?v=3","gravatar_id":"","url":"https://api.github.com/users/mRs-","html_url":"https://github.com/mRs-","followers_url":"https://api.github.com/users/mRs-/followers","following_url":"https://api.github.com/users/mRs-/following{/other_user}","gists_url":"https://api.github.com/users/mRs-/gists{/gist_id}","starred_url":"https://api.github.com/users/mRs-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mRs-/subscriptions","organizations_url":"https://api.github.com/users/mRs-/orgs","repos_url":"https://api.github.com/users/mRs-/repos","events_url":"https://api.github.com/users/mRs-/events{/privacy}","received_events_url":"https://api.github.com/users/mRs-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-06T13:54:36Z","updated_at":"2015-07-07T06:01:16Z","closed_at":"2015-07-06T17:44:18Z","body":"I encountered today a heavy performance problem with my `NSTextCheckingTypeLink` and cells in an `UIScrollView` equivalent.\r\n\r\nThe main Problem is the hitTest, it's to much to do on the main thread with the current implementation.\r\n![screenshot 2015-07-06 15 49 49](https://cloud.githubusercontent.com/assets/736421/8523624/ac5eeb12-23f6-11e5-9c34-f4188dfb4f48.png)\r\n\r\nTo reproduce this bug just add complete links to the current example project and set `enableTextCheckingType`.\r\n\r\n    self.summaryLabel.enabledTextCheckingTypes = NSTextCheckingTypeLink;\r\n\r\nAnd add some links to the espressos.txt file\r\n\r\n\r\nI would like to fix this problem and IMHO it would be the easiest way to cache the characterIndexAtPoint. But is this the easiest solution or do you have better ideas to fix this little nasty bug?"},"comment":{"url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/comments/119082055","html_url":"https://github.com/TTTAttributedLabel/TTTAttributedLabel/issues/551#issuecomment-119082055","issue_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/551","id":119082055,"user":{"login":"mRs-","id":736421,"avatar_url":"https://avatars.githubusercontent.com/u/736421?v=3","gravatar_id":"","url":"https://api.github.com/users/mRs-","html_url":"https://github.com/mRs-","followers_url":"https://api.github.com/users/mRs-/followers","following_url":"https://api.github.com/users/mRs-/following{/other_user}","gists_url":"https://api.github.com/users/mRs-/gists{/gist_id}","starred_url":"https://api.github.com/users/mRs-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mRs-/subscriptions","organizations_url":"https://api.github.com/users/mRs-/orgs","repos_url":"https://api.github.com/users/mRs-/repos","events_url":"https://api.github.com/users/mRs-/events{/privacy}","received_events_url":"https://api.github.com/users/mRs-/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T06:01:16Z","updated_at":"2015-07-07T06:01:16Z","body":"But wouldn't it be better to just support the extendsLinkTouchArea and to fix this with a caching behavior? It would be awesome for the TTTAttributedLabel to support this. I am willed to write a fix for this if it's possible to cache some things in the hitTest method"}}