{"action":"opened","issue":{"url":"https://api.github.com/repos/m2ci-msp/jtgt/issues/20","repository_url":"https://api.github.com/repos/m2ci-msp/jtgt","labels_url":"https://api.github.com/repos/m2ci-msp/jtgt/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/m2ci-msp/jtgt/issues/20/comments","events_url":"https://api.github.com/repos/m2ci-msp/jtgt/issues/20/events","html_url":"https://github.com/m2ci-msp/jtgt/issues/20","id":334362117,"node_id":"MDU6SXNzdWUzMzQzNjIxMTc=","number":20,"title":"Saving big TextGrids is extremely slow","user":{"login":"psibre","id":1278639,"node_id":"MDQ6VXNlcjEyNzg2Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1278639?v=4","gravatar_id":"","url":"https://api.github.com/users/psibre","html_url":"https://github.com/psibre","followers_url":"https://api.github.com/users/psibre/followers","following_url":"https://api.github.com/users/psibre/following{/other_user}","gists_url":"https://api.github.com/users/psibre/gists{/gist_id}","starred_url":"https://api.github.com/users/psibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psibre/subscriptions","organizations_url":"https://api.github.com/users/psibre/orgs","repos_url":"https://api.github.com/users/psibre/repos","events_url":"https://api.github.com/users/psibre/events{/privacy}","received_events_url":"https://api.github.com/users/psibre/received_events","type":"User","site_admin":false},"labels":[{"id":625761987,"node_id":"MDU6TGFiZWw2MjU3NjE5ODc=","url":"https://api.github.com/repos/m2ci-msp/jtgt/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/m2ci-msp/jtgt/milestones/2","html_url":"https://github.com/m2ci-msp/jtgt/milestone/2","labels_url":"https://api.github.com/repos/m2ci-msp/jtgt/milestones/2/labels","id":3440964,"node_id":"MDk6TWlsZXN0b25lMzQ0MDk2NA==","number":2,"title":"v0.6.1","description":"","creator":{"login":"psibre","id":1278639,"node_id":"MDQ6VXNlcjEyNzg2Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1278639?v=4","gravatar_id":"","url":"https://api.github.com/users/psibre","html_url":"https://github.com/psibre","followers_url":"https://api.github.com/users/psibre/followers","following_url":"https://api.github.com/users/psibre/following{/other_user}","gists_url":"https://api.github.com/users/psibre/gists{/gist_id}","starred_url":"https://api.github.com/users/psibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psibre/subscriptions","organizations_url":"https://api.github.com/users/psibre/orgs","repos_url":"https://api.github.com/users/psibre/repos","events_url":"https://api.github.com/users/psibre/events{/privacy}","received_events_url":"https://api.github.com/users/psibre/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2018-06-21T06:51:59Z","updated_at":"2018-06-21T06:57:49Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-06-21T06:57:49Z","updated_at":"2018-06-21T06:57:49Z","closed_at":null,"author_association":"MEMBER","body":"## Expected behavior\r\n\r\nBig TextGrids should be saved quickly.\r\n\r\n## Actual behavior (with the stacktrace!)\r\n\r\nSaving a big TextGrid can take up to several minutes!\r\n\r\n## Steps to reproduce the behavior\r\n\r\nCreate a big TextGrid, try saving it.\r\nImplemented a test to expose this issue.\r\n\r\n## Additional information\r\n\r\nThe root of the problem is that even though TextGridSerializer#save uses a BufferedWriter, it still attempts to create a single String containing the entire TextGrid before writing it. And within TextGridSerializer#toString, there is excessive String concatenation instead of using an efficient class such as a StringBuilder."}}
{"actor":{"display_login":"psibre"}}