{"action":"created","issue":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/480","repository_url":"https://api.github.com/repos/mesonbuild/meson","labels_url":"https://api.github.com/repos/mesonbuild/meson/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/mesonbuild/meson/issues/480/comments","events_url":"https://api.github.com/repos/mesonbuild/meson/issues/480/events","html_url":"https://github.com/mesonbuild/meson/issues/480","id":144077725,"number":480,"title":"`ninja install` is slow","user":{"login":"rhd","id":3422847,"avatar_url":"https://avatars.githubusercontent.com/u/3422847?v=3","gravatar_id":"","url":"https://api.github.com/users/rhd","html_url":"https://github.com/rhd","followers_url":"https://api.github.com/users/rhd/followers","following_url":"https://api.github.com/users/rhd/following{/other_user}","gists_url":"https://api.github.com/users/rhd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhd/subscriptions","organizations_url":"https://api.github.com/users/rhd/orgs","repos_url":"https://api.github.com/users/rhd/repos","events_url":"https://api.github.com/users/rhd/events{/privacy}","received_events_url":"https://api.github.com/users/rhd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-28T20:40:55Z","updated_at":"2016-03-29T04:54:46Z","closed_at":null,"body":"Hey Jussi, doing `ninja install` has seemed slow to me for a while so I finally wrote a script that does the same thing as meson does when the installer is executed. There are around 30 things that get copied. I basically converted `Installing apps/app1/app1 to /install/bin/app1` to `cp apps/app1/app1 /install/bin/app1` to compare.\r\n\r\n```\r\ntime ninja -C build-gcc install\r\nninja: Entering directory `build-gcc'\r\n[1/1] Installing files.\r\n....\r\nreal\t0m4.258s\r\nuser\t0m3.213s\r\nsys\t0m0.900s\r\n```\r\n\r\nvs\r\n\r\n```\r\n./installtest.sh \r\n\r\nreal\t0m1.014s\r\nuser\t0m0.015s\r\nsys\t0m0.375s\r\n```\r\n\r\nOver a 4x penalty. This is repeatable even with hot disk cache.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mesonbuild/meson/issues/comments/202710889","html_url":"https://github.com/mesonbuild/meson/issues/480#issuecomment-202710889","issue_url":"https://api.github.com/repos/mesonbuild/meson/issues/480","id":202710889,"user":{"login":"rhd","id":3422847,"avatar_url":"https://avatars.githubusercontent.com/u/3422847?v=3","gravatar_id":"","url":"https://api.github.com/users/rhd","html_url":"https://github.com/rhd","followers_url":"https://api.github.com/users/rhd/followers","following_url":"https://api.github.com/users/rhd/following{/other_user}","gists_url":"https://api.github.com/users/rhd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhd/subscriptions","organizations_url":"https://api.github.com/users/rhd/orgs","repos_url":"https://api.github.com/users/rhd/repos","events_url":"https://api.github.com/users/rhd/events{/privacy}","received_events_url":"https://api.github.com/users/rhd/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T04:54:46Z","updated_at":"2016-03-29T04:54:46Z","body":"@nirbheek You're right. The installer executes the `depfixer` for each target. That is what's most likely causing the slowdown."}}