{"action":"opened","issue":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/220","repository_url":"https://api.github.com/repos/ianstormtaylor/slate","labels_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/220/comments","events_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/220/events","html_url":"https://github.com/ianstormtaylor/slate/issues/220","id":169221813,"number":220,"title":"What is the recommended way to improve Code Highlighting example speed","user":{"login":"istarkov","id":5077042,"avatar_url":"https://avatars.githubusercontent.com/u/5077042?v=3","gravatar_id":"","url":"https://api.github.com/users/istarkov","html_url":"https://github.com/istarkov","followers_url":"https://api.github.com/users/istarkov/followers","following_url":"https://api.github.com/users/istarkov/following{/other_user}","gists_url":"https://api.github.com/users/istarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/istarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istarkov/subscriptions","organizations_url":"https://api.github.com/users/istarkov/orgs","repos_url":"https://api.github.com/users/istarkov/repos","events_url":"https://api.github.com/users/istarkov/events{/privacy}","received_events_url":"https://api.github.com/users/istarkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-03T20:08:04Z","updated_at":"2016-08-03T20:08:04Z","closed_at":null,"body":"Now for 50-100 lines of code [Code Highlighting](http://slatejs.org/#/code-highlighting) example works very slow. \r\nIt takes near second to render on each key press.\r\n\r\nI think it's because of marks applied to each character instead of text ranges https://github.com/ianstormtaylor/slate/blob/7128085e9e45c5b35b8e666bac75f595f14167a7/examples/code-highlighting/index.js#L153-L159\r\n\r\nI thinks that the way to apply marks on ranges exists, \r\nor code should be split in multiple blocks but not sure.\r\n \r\nThe question is - how to greatly improve performance of this example?"}}
{"actor":{"display_login":"istarkov"}}