{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2106","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2106/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2106/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2106/events","html_url":"https://github.com/ipfs/go-ipfs/pull/2106","id":123065182,"number":2106,"title":"Feat/mfs locking perf","user":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/perf","name":"perf","color":"fbca04"},{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/RFCR","name":"RFCR","color":"fbca04"},{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/unixfs","name":"unixfs","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-19T06:03:21Z","updated_at":"2016-01-01T14:55:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/2106","html_url":"https://github.com/ipfs/go-ipfs/pull/2106","diff_url":"https://github.com/ipfs/go-ipfs/pull/2106.diff","patch_url":"https://github.com/ipfs/go-ipfs/pull/2106.patch"},"body":"This PR makes a few performance changes and bugfixes to mfs.\r\n\r\nFirst, It avoids holding multiple locks at a time when syncing filesystem changes up to the root, this is both a bugfix (deadlocks were found) and a performance improvement (holding multiple locks gets exponentially more expensive under load).\r\n\r\nThe second (third commit) change adds the `--flush` flag to the `ipfs files mkdir` command, it defaults to true, but can be set to false with `--flush=false` to avoid syncing the entire directory tree every time mkdir is called."},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/168311980","html_url":"https://github.com/ipfs/go-ipfs/pull/2106#issuecomment-168311980","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/2106","id":168311980,"user":{"login":"whyrusleeping","id":1243164,"avatar_url":"https://avatars.githubusercontent.com/u/1243164?v=3","gravatar_id":"","url":"https://api.github.com/users/whyrusleeping","html_url":"https://github.com/whyrusleeping","followers_url":"https://api.github.com/users/whyrusleeping/followers","following_url":"https://api.github.com/users/whyrusleeping/following{/other_user}","gists_url":"https://api.github.com/users/whyrusleeping/gists{/gist_id}","starred_url":"https://api.github.com/users/whyrusleeping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whyrusleeping/subscriptions","organizations_url":"https://api.github.com/users/whyrusleeping/orgs","repos_url":"https://api.github.com/users/whyrusleeping/repos","events_url":"https://api.github.com/users/whyrusleeping/events{/privacy}","received_events_url":"https://api.github.com/users/whyrusleeping/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T14:55:45Z","updated_at":"2016-01-01T14:55:45Z","body":"@diasdavid try this out. It works pretty good for me, and all the relevant tests passed (yay random test failures... :( )"}}