{"action":"opened","issue":{"url":"https://api.github.com/repos/hypothesis/dom-text-mapper/issues/52","labels_url":"https://api.github.com/repos/hypothesis/dom-text-mapper/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/hypothesis/dom-text-mapper/issues/52/comments","events_url":"https://api.github.com/repos/hypothesis/dom-text-mapper/issues/52/events","html_url":"https://github.com/hypothesis/dom-text-mapper/issues/52","id":56586146,"number":52,"title":"Selecting a paragraph with triple-click drastically decreases performance","user":{"login":"gergely-ujvari","id":2094134,"avatar_url":"https://avatars.githubusercontent.com/u/2094134?v=3","gravatar_id":"","url":"https://api.github.com/users/gergely-ujvari","html_url":"https://github.com/gergely-ujvari","followers_url":"https://api.github.com/users/gergely-ujvari/followers","following_url":"https://api.github.com/users/gergely-ujvari/following{/other_user}","gists_url":"https://api.github.com/users/gergely-ujvari/gists{/gist_id}","starred_url":"https://api.github.com/users/gergely-ujvari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gergely-ujvari/subscriptions","organizations_url":"https://api.github.com/users/gergely-ujvari/orgs","repos_url":"https://api.github.com/users/gergely-ujvari/repos","events_url":"https://api.github.com/users/gergely-ujvari/events{/privacy}","received_events_url":"https://api.github.com/users/gergely-ujvari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T20:56:40Z","updated_at":"2015-02-04T20:56:40Z","closed_at":null,"body":"Just bringing https://github.com/hypothesis/h/issues/1224 here, to its proper place\r\n\r\n1. Open this page http://en.wikipedia.org/wiki/United_States\r\n2. Launch our test-extension or bookmarklet\r\n3. Select a whole paragraph by triple-click\r\n\r\nResult: The tab is frozen for nearly a minute, scrolling is not available, the adder only shows up after this huge delay. Checking the profiler it seems the Dom-text-mapper is consuming the processor by calling the: ```window.DomTextMapper.DomTextMapper.performUpdateOnNode``` function\r\n"}}