{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/datakit/issues/102","repository_url":"https://api.github.com/repos/docker/datakit","labels_url":"https://api.github.com/repos/docker/datakit/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/docker/datakit/issues/102/comments","events_url":"https://api.github.com/repos/docker/datakit/issues/102/events","html_url":"https://github.com/docker/datakit/issues/102","id":155506231,"number":102,"title":"Make appending efficient","user":{"login":"talex5","id":554131,"avatar_url":"https://avatars.githubusercontent.com/u/554131?v=3","gravatar_id":"","url":"https://api.github.com/users/talex5","html_url":"https://github.com/talex5","followers_url":"https://api.github.com/users/talex5/followers","following_url":"https://api.github.com/users/talex5/following{/other_user}","gists_url":"https://api.github.com/users/talex5/gists{/gist_id}","starred_url":"https://api.github.com/users/talex5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talex5/subscriptions","organizations_url":"https://api.github.com/users/talex5/orgs","repos_url":"https://api.github.com/users/talex5/repos","events_url":"https://api.github.com/users/talex5/events{/privacy}","received_events_url":"https://api.github.com/users/talex5/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/datakit/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF"}],"state":"closed","locked":false,"assignee":{"login":"talex5","id":554131,"avatar_url":"https://avatars.githubusercontent.com/u/554131?v=3","gravatar_id":"","url":"https://api.github.com/users/talex5","html_url":"https://github.com/talex5","followers_url":"https://api.github.com/users/talex5/followers","following_url":"https://api.github.com/users/talex5/following{/other_user}","gists_url":"https://api.github.com/users/talex5/gists{/gist_id}","starred_url":"https://api.github.com/users/talex5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talex5/subscriptions","organizations_url":"https://api.github.com/users/talex5/orgs","repos_url":"https://api.github.com/users/talex5/repos","events_url":"https://api.github.com/users/talex5/events{/privacy}","received_events_url":"https://api.github.com/users/talex5/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-05-18T13:49:38Z","updated_at":"2016-06-01T11:07:44Z","closed_at":"2016-06-01T11:07:44Z","body":"The Linux 9p client writes large files (e.g. the Moby iso) 8KB at a time. Datakit handles each write by allocating a new buffer, copying the old version into it, and adding the new 8KB. This gets slow quickly ;-)\r\n\r\nChange the type for files in `Ivfs_tree` from\r\n\r\n      | Blob of Cstruct.t\r\n\r\nto\r\n\r\n      | Blob of Blob.t\r\n\r\nand make a suitable `Blob` module for efficient non-destructive updates. e.g. copy-on-write, or just use a list of blocks in reverse order (and concat them all together at the end)."}}
{"actor":{"display_login":"samoht"}}