{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/13521","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/13521/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/13521/comments","events_url":"https://api.github.com/repos/atom/atom/issues/13521/events","html_url":"https://github.com/atom/atom/issues/13521","id":198155205,"number":13521,"title":"Bad Performance Related to Syntax Coloring","user":{"login":"tenaciousRas","id":260223,"avatar_url":"https://avatars.githubusercontent.com/u/260223?v=3","gravatar_id":"","url":"https://api.github.com/users/tenaciousRas","html_url":"https://github.com/tenaciousRas","followers_url":"https://api.github.com/users/tenaciousRas/followers","following_url":"https://api.github.com/users/tenaciousRas/following{/other_user}","gists_url":"https://api.github.com/users/tenaciousRas/gists{/gist_id}","starred_url":"https://api.github.com/users/tenaciousRas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenaciousRas/subscriptions","organizations_url":"https://api.github.com/users/tenaciousRas/orgs","repos_url":"https://api.github.com/users/tenaciousRas/repos","events_url":"https://api.github.com/users/tenaciousRas/events{/privacy}","received_events_url":"https://api.github.com/users/tenaciousRas/received_events","type":"User","site_admin":false},"labels":[{"id":98444358,"url":"https://api.github.com/repos/atom/atom/labels/more-information-needed","name":"more-information-needed","color":"009800","default":false},{"id":171329633,"url":"https://api.github.com/repos/atom/atom/labels/needs-reproduction","name":"needs-reproduction","color":"009800","default":false},{"id":52925411,"url":"https://api.github.com/repos/atom/atom/labels/performance","name":"performance","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-12-30T14:44:11Z","updated_at":"2017-01-17T04:08:09Z","closed_at":null,"body":"### Prerequisites\r\n- [x] Can you reproduce the problem in [safe mode](http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode)?\r\n- [x] Are you running the [latest version of Atom](http://flight-manual.atom.io/hacking-atom/sections/debugging/#update-to-the-latest-version)?\r\n- [x] Did you check the [debugging guide](http://flight-manual.atom.io/hacking-atom/sections/debugging/)?\r\n- [x] Did you check the [FAQs on Discuss](https://discuss.atom.io/c/faq)?\r\n- [x] Are you reporting to the [correct repository](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#atom-and-packages)?\r\n- [x] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Aatom+-repo%3Aatom%2Felectron) to see if your bug or enhancement is already reported?\r\n\r\nFor more information on how to write a good [bug report](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-bug-report) or [enhancement request](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-enhancement-suggestion), see the `CONTRIBUTING` guide.\r\n### Description\r\n\r\nWhen commenting long HTML lines, the editor hangs if the comment is authored in a natural way.  There is a workaround that can avoid the editor hang.\r\n### Steps to Reproduce\r\n1. Create an HTML document with multiple long lines of HTML code.  A \"long line\" is defined as a line > 500KB in length.  For example, create a script tag and place the contents of a large file into it.  \"Large\" is defined as a file > 500KB in size.  Then create a second tag with the contents of another file.  NOTE:  you may need more HTML contents to reproduce this issue, if so simply create the code.\r\n2. Preprend an HTML comment to the first script tag, i.e. \"<!--\".  The code below will be re-colored as a comment.\r\n3. Append \"-->\" to the closing script tag.  The editor will hang while re-coloring the syntax.\r\n\r\n**Expected behavior:** [What you expected to happen]\r\nJust use the previously known coloration when closing the comment.  Why re-process?\r\n\r\n**Actual behavior:** [What actually happened]\r\nEditor hangs while re-coloring.\r\n### Workaround\r\n\r\nWhen commenting long lines with an HTML comment, add the closing token first, then add the opening token.  No hanging occurs.\r\n- NOTE:  there's no reason to think this doesn't happen with long JavaScript lines commented with /\\* ... */.  Although unverified there's reason to suspect this could be a general problem for any programming language with multi-line comments in AtomIDE.\r\n\r\n### Note:  @50Wliu demanded we re-open this bug with a definition of \"large\" and \"long line\" per https://github.com/atom/atom/issues/12784#issuecomment-249675622.\r\n\r\n### Versions\r\n\r\nAtom    : 1.9.9\r\nElectron: 0.37.8\r\nChrome  : 49.0.2623.75\r\nNode    : 5.10.0\r\n\r\napm  1.10.0\r\nnpm  2.13.3\r\nnode 0.10.40\r\npython 2.7.12\r\ngit 2.7.4\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/273017809","html_url":"https://github.com/atom/atom/issues/13521#issuecomment-273017809","issue_url":"https://api.github.com/repos/atom/atom/issues/13521","id":273017809,"user":{"login":"tenaciousRas","id":260223,"avatar_url":"https://avatars.githubusercontent.com/u/260223?v=3","gravatar_id":"","url":"https://api.github.com/users/tenaciousRas","html_url":"https://github.com/tenaciousRas","followers_url":"https://api.github.com/users/tenaciousRas/followers","following_url":"https://api.github.com/users/tenaciousRas/following{/other_user}","gists_url":"https://api.github.com/users/tenaciousRas/gists{/gist_id}","starred_url":"https://api.github.com/users/tenaciousRas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenaciousRas/subscriptions","organizations_url":"https://api.github.com/users/tenaciousRas/orgs","repos_url":"https://api.github.com/users/tenaciousRas/repos","events_url":"https://api.github.com/users/tenaciousRas/events{/privacy}","received_events_url":"https://api.github.com/users/tenaciousRas/received_events","type":"User","site_admin":false},"created_at":"2017-01-17T04:08:09Z","updated_at":"2017-01-17T04:08:09Z","body":"@majormoses It's probably that I'm biased, but when to me that code reads like \"block, block, block\" so it actually isn't painful."}}
{"actor":{"display_login":"tenaciousRas"}}