{"action":"created","issue":{"url":"https://api.github.com/repos/winder/Universal-G-Code-Sender/issues/299","labels_url":"https://api.github.com/repos/winder/Universal-G-Code-Sender/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/winder/Universal-G-Code-Sender/issues/299/comments","events_url":"https://api.github.com/repos/winder/Universal-G-Code-Sender/issues/299/events","html_url":"https://github.com/winder/Universal-G-Code-Sender/pull/299","id":110142870,"number":299,"title":"performance enhancement - optimize file preprocessing","user":{"login":"philreindl","id":3010883,"avatar_url":"https://avatars.githubusercontent.com/u/3010883?v=3","gravatar_id":"","url":"https://api.github.com/users/philreindl","html_url":"https://github.com/philreindl","followers_url":"https://api.github.com/users/philreindl/followers","following_url":"https://api.github.com/users/philreindl/following{/other_user}","gists_url":"https://api.github.com/users/philreindl/gists{/gist_id}","starred_url":"https://api.github.com/users/philreindl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philreindl/subscriptions","organizations_url":"https://api.github.com/users/philreindl/orgs","repos_url":"https://api.github.com/users/philreindl/repos","events_url":"https://api.github.com/users/philreindl/events{/privacy}","received_events_url":"https://api.github.com/users/philreindl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-07T02:54:04Z","updated_at":"2015-10-08T18:13:53Z","closed_at":"2015-10-08T18:13:53Z","pull_request":{"url":"https://api.github.com/repos/winder/Universal-G-Code-Sender/pulls/299","html_url":"https://github.com/winder/Universal-G-Code-Sender/pull/299","diff_url":"https://github.com/winder/Universal-G-Code-Sender/pull/299.diff","patch_url":"https://github.com/winder/Universal-G-Code-Sender/pull/299.patch"},"body":"When opening large files, the preprocessing takes a very long time.  By compiling the regular expressions once rather than using the string.replaceAll methods, we can save significant time.\r\n\r\nOn my laptop, I opened a gcode file with 7233438 lines (laser image raster)\r\nwith my changes - 16155ms\r\nmaster - 56178ms \r\n\r\nI believe this addresses at least part of Issue #168.  "},"comment":{"url":"https://api.github.com/repos/winder/Universal-G-Code-Sender/issues/comments/146642598","html_url":"https://github.com/winder/Universal-G-Code-Sender/pull/299#issuecomment-146642598","issue_url":"https://api.github.com/repos/winder/Universal-G-Code-Sender/issues/299","id":146642598,"user":{"login":"winder","id":125509,"avatar_url":"https://avatars.githubusercontent.com/u/125509?v=3","gravatar_id":"","url":"https://api.github.com/users/winder","html_url":"https://github.com/winder","followers_url":"https://api.github.com/users/winder/followers","following_url":"https://api.github.com/users/winder/following{/other_user}","gists_url":"https://api.github.com/users/winder/gists{/gist_id}","starred_url":"https://api.github.com/users/winder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winder/subscriptions","organizations_url":"https://api.github.com/users/winder/orgs","repos_url":"https://api.github.com/users/winder/repos","events_url":"https://api.github.com/users/winder/events{/privacy}","received_events_url":"https://api.github.com/users/winder/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T18:13:53Z","updated_at":"2015-10-08T18:13:53Z","body":"Thanks!"}}