{"action":"closed","issue":{"url":"https://api.github.com/repos/ambv/black/issues/109","repository_url":"https://api.github.com/repos/ambv/black","labels_url":"https://api.github.com/repos/ambv/black/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/ambv/black/issues/109/comments","events_url":"https://api.github.com/repos/ambv/black/issues/109/events","html_url":"https://github.com/ambv/black/issues/109","id":311522962,"number":109,"title":"Suggestion: Cache already formatted files","user":{"login":"ojii","id":141122,"avatar_url":"https://avatars0.githubusercontent.com/u/141122?v=4","gravatar_id":"","url":"https://api.github.com/users/ojii","html_url":"https://github.com/ojii","followers_url":"https://api.github.com/users/ojii/followers","following_url":"https://api.github.com/users/ojii/following{/other_user}","gists_url":"https://api.github.com/users/ojii/gists{/gist_id}","starred_url":"https://api.github.com/users/ojii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojii/subscriptions","organizations_url":"https://api.github.com/users/ojii/orgs","repos_url":"https://api.github.com/users/ojii/repos","events_url":"https://api.github.com/users/ojii/events{/privacy}","received_events_url":"https://api.github.com/users/ojii/received_events","type":"User","site_admin":false},"labels":[{"id":869135448,"url":"https://api.github.com/repos/ambv/black/labels/design","name":"design","color":"0052cc","default":false},{"id":867432796,"url":"https://api.github.com/repos/ambv/black/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-04-05T08:48:51Z","updated_at":"2018-04-19T05:30:13Z","closed_at":"2018-04-19T05:30:13Z","author_association":"CONTRIBUTOR","body":"We have a decently sized Python code base and running black is \"slow\" (~10 seconds), which can be a bit annoying when run often. A solution for this would be to cache already formatted files (eg by storing a checksum of them in a file somewhere).\r\n\r\nI've implemented a hacky solution for this and for my project, on a fully black-ed + cacheed run takes ~1s vs the ~10s for fully black-ed + uncached. The initial run (fully non-black + uncached) takes significantly longer, so clearly more work is needed should this feature be desired, but before I continue working on this I want to know if this is something that is desired and could eventually be merged in."}}
{"actor":{"display_login":"ambv"}}