{"action":"created","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":[{"url":"https://api.github.com/repos/ianstormtaylor/slate/labels/performance","name":"performance","color":"fef2c0"},{"url":"https://api.github.com/repos/ianstormtaylor/slate/labels/question","name":"question","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-03T20:08:04Z","updated_at":"2016-08-04T17:53:10Z","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?"},"comment":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/comments/237630883","html_url":"https://github.com/ianstormtaylor/slate/issues/220#issuecomment-237630883","issue_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/220","id":237630883,"user":{"login":"ianstormtaylor","id":311752,"avatar_url":"https://avatars.githubusercontent.com/u/311752?v=3","gravatar_id":"","url":"https://api.github.com/users/ianstormtaylor","html_url":"https://github.com/ianstormtaylor","followers_url":"https://api.github.com/users/ianstormtaylor/followers","following_url":"https://api.github.com/users/ianstormtaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianstormtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianstormtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianstormtaylor/subscriptions","organizations_url":"https://api.github.com/users/ianstormtaylor/orgs","repos_url":"https://api.github.com/users/ianstormtaylor/repos","events_url":"https://api.github.com/users/ianstormtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianstormtaylor/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T17:53:10Z","updated_at":"2016-08-04T17:53:10Z","body":"Good questions, and I'm definitely open to any changes to improve this. I think there must be a way (more likely multiple smaller ways) to improve the rendering piece alone. And I do think that right now in long, highlighted code blocks, rendering is one of the biggest issues. If anyone dives in with performance analysis, add it here! And we can discuss improvements"}}
{"actor":{"display_login":"ianstormtaylor"}}