{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tikv/issues/3352","repository_url":"https://api.github.com/repos/pingcap/tikv","labels_url":"https://api.github.com/repos/pingcap/tikv/issues/3352/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tikv/issues/3352/comments","events_url":"https://api.github.com/repos/pingcap/tikv/issues/3352/events","html_url":"https://github.com/pingcap/tikv/issues/3352","id":344347449,"node_id":"MDU6SXNzdWUzNDQzNDc0NDk=","number":3352,"title":"Split the project into multiple workspaces","user":{"login":"breeswish","id":1916485,"node_id":"MDQ6VXNlcjE5MTY0ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/1916485?v=4","gravatar_id":"","url":"https://api.github.com/users/breeswish","html_url":"https://github.com/breeswish","followers_url":"https://api.github.com/users/breeswish/followers","following_url":"https://api.github.com/users/breeswish/following{/other_user}","gists_url":"https://api.github.com/users/breeswish/gists{/gist_id}","starred_url":"https://api.github.com/users/breeswish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breeswish/subscriptions","organizations_url":"https://api.github.com/users/breeswish/orgs","repos_url":"https://api.github.com/users/breeswish/repos","events_url":"https://api.github.com/users/breeswish/events{/privacy}","received_events_url":"https://api.github.com/users/breeswish/received_events","type":"User","site_admin":false},"labels":[{"id":340020891,"node_id":"MDU6TGFiZWwzNDAwMjA4OTE=","url":"https://api.github.com/repos/pingcap/tikv/labels/S:%20Proposal","name":"S: Proposal","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-25T08:41:37Z","updated_at":"2018-07-25T11:49:16Z","closed_at":null,"author_association":"MEMBER","body":"## Feature Request\r\n\r\nCurrently all of the code are imported by a single entry, i.e. `src/lib.rs`. When we change something (even just adding a blank line), it takes at least 4 minutes to compile on a high-end server in release mode (even when LTO=false). This makes it very hard to do micro optimizations on a function level.\r\n\r\nWe can split our single TiKV library into multiple workspaces, so that it will be easy and not time consuming to write benchmarks for each component, especially codecs.\r\n\r\nSome samples:\r\n\r\n- [servo](https://github.com/servo/servo/tree/master/components)\r\n- [habitat](https://github.com/habitat-sh/habitat/tree/master/components)\r\n- [rust](https://github.com/rust-lang/rust/tree/master/src)\r\n"},"comment":{"url":"https://api.github.com/repos/pingcap/tikv/issues/comments/407727116","html_url":"https://github.com/pingcap/tikv/issues/3352#issuecomment-407727116","issue_url":"https://api.github.com/repos/pingcap/tikv/issues/3352","id":407727116,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzcyNzExNg==","user":{"login":"breeswish","id":1916485,"node_id":"MDQ6VXNlcjE5MTY0ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/1916485?v=4","gravatar_id":"","url":"https://api.github.com/users/breeswish","html_url":"https://github.com/breeswish","followers_url":"https://api.github.com/users/breeswish/followers","following_url":"https://api.github.com/users/breeswish/following{/other_user}","gists_url":"https://api.github.com/users/breeswish/gists{/gist_id}","starred_url":"https://api.github.com/users/breeswish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breeswish/subscriptions","organizations_url":"https://api.github.com/users/breeswish/orgs","repos_url":"https://api.github.com/users/breeswish/repos","events_url":"https://api.github.com/users/breeswish/events{/privacy}","received_events_url":"https://api.github.com/users/breeswish/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T11:49:16Z","updated_at":"2018-07-25T11:49:16Z","author_association":"MEMBER","body":"@BusyJay That's what we need to investigate. BTW, it should not speed up initial compilation. Instead, maybe the incremental parts."}}
{"actor":{"display_login":"breeswish"}}