{"action":"created","issue":{"url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/66","labels_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/66/comments","events_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/66/events","html_url":"https://github.com/rwz/ember-cli-rails/issues/66","id":55381297,"number":66,"title":"Ember app in default path degrades perf of Rails","user":{"login":"jesenko","id":740797,"avatar_url":"https://avatars.githubusercontent.com/u/740797?v=3","gravatar_id":"","url":"https://api.github.com/users/jesenko","html_url":"https://github.com/jesenko","followers_url":"https://api.github.com/users/jesenko/followers","following_url":"https://api.github.com/users/jesenko/following{/other_user}","gists_url":"https://api.github.com/users/jesenko/gists{/gist_id}","starred_url":"https://api.github.com/users/jesenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesenko/subscriptions","organizations_url":"https://api.github.com/users/jesenko/orgs","repos_url":"https://api.github.com/users/jesenko/repos","events_url":"https://api.github.com/users/jesenko/events{/privacy}","received_events_url":"https://api.github.com/users/jesenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-24T19:09:06Z","updated_at":"2015-02-04T15:28:23Z","closed_at":null,"body":"When Ember app is placed in Rails `/app` folder (i.e. default ember-cli-rails path), perf of Rails (rendering pages, serving assets, etc) degrades significantly due to large number of additional files (bower_components, node_modules) in Rails `autoload` path. \r\n\r\nQuick profiling led to the following method call:\r\n`Rack/ActionDispatch::Reloader/call`\r\n* < 1ms without EmberCLI app\r\n* ~ 150ms with EmberCLI app\r\n\r\nAs a workaround, EmberCLI app can be just placed to any non-autoload path.\r\n\r\nTo avoid perf. problems I suggest the following:\r\n* default app EmberCLI app path should be changed to something outside Rails `app` folder, e.g. `Rails.root.join('jsapp', <appname>)`\r\n* Possible perf. problems when placing EmberCLI app in `app` folder should be mentioned in the readme.\r\n\r\nI have only verified this issue on my local dev machine:\r\nRails 4.1.7\r\nRuby 2.2\r\nOS X 10.9.5"},"comment":{"url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/comments/72874692","html_url":"https://github.com/rwz/ember-cli-rails/issues/66#issuecomment-72874692","issue_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/66","id":72874692,"user":{"login":"rwz","id":129043,"avatar_url":"https://avatars.githubusercontent.com/u/129043?v=3","gravatar_id":"","url":"https://api.github.com/users/rwz","html_url":"https://github.com/rwz","followers_url":"https://api.github.com/users/rwz/followers","following_url":"https://api.github.com/users/rwz/following{/other_user}","gists_url":"https://api.github.com/users/rwz/gists{/gist_id}","starred_url":"https://api.github.com/users/rwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwz/subscriptions","organizations_url":"https://api.github.com/users/rwz/orgs","repos_url":"https://api.github.com/users/rwz/repos","events_url":"https://api.github.com/users/rwz/events{/privacy}","received_events_url":"https://api.github.com/users/rwz/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T15:28:22Z","updated_at":"2015-02-04T15:28:22Z","body":"@AlexCppns we've moved EmberCLI app into project root."}}