{"action":"created","issue":{"url":"https://api.github.com/repos/aziz/SublimeANSI/issues/11","repository_url":"https://api.github.com/repos/aziz/SublimeANSI","labels_url":"https://api.github.com/repos/aziz/SublimeANSI/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/aziz/SublimeANSI/issues/11/comments","events_url":"https://api.github.com/repos/aziz/SublimeANSI/issues/11/events","html_url":"https://github.com/aziz/SublimeANSI/pull/11","id":144807101,"number":11,"title":"Improve performance for large file","user":{"login":"jfcherng","id":6594915,"avatar_url":"https://avatars.githubusercontent.com/u/6594915?v=3","gravatar_id":"","url":"https://api.github.com/users/jfcherng","html_url":"https://github.com/jfcherng","followers_url":"https://api.github.com/users/jfcherng/followers","following_url":"https://api.github.com/users/jfcherng/following{/other_user}","gists_url":"https://api.github.com/users/jfcherng/gists{/gist_id}","starred_url":"https://api.github.com/users/jfcherng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfcherng/subscriptions","organizations_url":"https://api.github.com/users/jfcherng/orgs","repos_url":"https://api.github.com/users/jfcherng/repos","events_url":"https://api.github.com/users/jfcherng/events{/privacy}","received_events_url":"https://api.github.com/users/jfcherng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-31T06:49:46Z","updated_at":"2016-04-05T11:07:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aziz/SublimeANSI/pulls/11","html_url":"https://github.com/aziz/SublimeANSI/pull/11","diff_url":"https://github.com/aziz/SublimeANSI/pull/11.diff","patch_url":"https://github.com/aziz/SublimeANSI/pull/11.patch"},"body":"The original [line 40](https://github.com/aziz/SublimeANSI/blob/addcaeaa416bf4fdabb9f55d32c93a999e049098/ansi.py#L40) in a nested loop is pretty slow when our file content gets larger. Remove unnecessary colors, which do not appear in the file content, to gain some speed.\r\n\r\nI use `git log --graph --date=short --pretty=format:'%C(yellow bold)%h%Creset%C(auto)%d%Creset - %s %C(green bold)[%an]%Creset %C(blue bold)(%ad, %cr)%Creset'` in the custom command from SublimeSideBarGit to test, which looks like the following screenshot.\r\n\r\n![image](https://raw.githubusercontent.com/jfcherng/Sublime-AutoSetSyntax/gh-pages/images/example/git-log.gif)"},"comment":{"url":"https://api.github.com/repos/aziz/SublimeANSI/issues/comments/205757715","html_url":"https://github.com/aziz/SublimeANSI/pull/11#issuecomment-205757715","issue_url":"https://api.github.com/repos/aziz/SublimeANSI/issues/11","id":205757715,"user":{"login":"vmuriart","id":13303020,"avatar_url":"https://avatars.githubusercontent.com/u/13303020?v=3","gravatar_id":"","url":"https://api.github.com/users/vmuriart","html_url":"https://github.com/vmuriart","followers_url":"https://api.github.com/users/vmuriart/followers","following_url":"https://api.github.com/users/vmuriart/following{/other_user}","gists_url":"https://api.github.com/users/vmuriart/gists{/gist_id}","starred_url":"https://api.github.com/users/vmuriart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmuriart/subscriptions","organizations_url":"https://api.github.com/users/vmuriart/orgs","repos_url":"https://api.github.com/users/vmuriart/repos","events_url":"https://api.github.com/users/vmuriart/events{/privacy}","received_events_url":"https://api.github.com/users/vmuriart/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T11:07:42Z","updated_at":"2016-04-05T11:07:42Z","body":"Pre_data_build looks to be behind master though\n\nOn Monday, April 4, 2016, Jack Cherng <notifications@github.com> wrote:\n\n> I just tried the pre_data_build branch. In my situation, i.e., a colored\n> git log, I feel my patch is significantly faster. If pre_data_build is\n> the main develop branch, maybe you can take advantages from my patch or\n> make it even better. [image: :+1:]\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/aziz/SublimeANSI/pull/11#issuecomment-205678968>\n>\n"}}