{"action":"created","issue":{"url":"https://api.github.com/repos/lagom/lagom/issues/1659","repository_url":"https://api.github.com/repos/lagom/lagom","labels_url":"https://api.github.com/repos/lagom/lagom/issues/1659/labels{/name}","comments_url":"https://api.github.com/repos/lagom/lagom/issues/1659/comments","events_url":"https://api.github.com/repos/lagom/lagom/issues/1659/events","html_url":"https://github.com/lagom/lagom/issues/1659","id":384421372,"node_id":"MDU6SXNzdWUzODQ0MjEzNzI=","number":1659,"title":"Improve WatchService resource usage in devmode","user":{"login":"ignasi35","id":762126,"node_id":"MDQ6VXNlcjc2MjEyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/762126?v=4","gravatar_id":"","url":"https://api.github.com/users/ignasi35","html_url":"https://github.com/ignasi35","followers_url":"https://api.github.com/users/ignasi35/followers","following_url":"https://api.github.com/users/ignasi35/following{/other_user}","gists_url":"https://api.github.com/users/ignasi35/gists{/gist_id}","starred_url":"https://api.github.com/users/ignasi35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignasi35/subscriptions","organizations_url":"https://api.github.com/users/ignasi35/orgs","repos_url":"https://api.github.com/users/ignasi35/repos","events_url":"https://api.github.com/users/ignasi35/events{/privacy}","received_events_url":"https://api.github.com/users/ignasi35/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-26T16:54:37Z","updated_at":"2018-11-28T20:16:22Z","closed_at":null,"author_association":"MEMBER","body":"Lagom uses a `WatchService` thread for each `sources` folder each project depends on. In an application like `online-auction-java` this means about 20+ threads.\r\n\r\nPerhaps a thread per project monitoring multiple folders, or a thread per folder that knows about each projects that needs reloading would be more efficient. Or other approaches...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lagom/lagom/issues/comments/442589517","html_url":"https://github.com/lagom/lagom/issues/1659#issuecomment-442589517","issue_url":"https://api.github.com/repos/lagom/lagom/issues/1659","id":442589517,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjU4OTUxNw==","user":{"login":"ignasi35","id":762126,"node_id":"MDQ6VXNlcjc2MjEyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/762126?v=4","gravatar_id":"","url":"https://api.github.com/users/ignasi35","html_url":"https://github.com/ignasi35","followers_url":"https://api.github.com/users/ignasi35/followers","following_url":"https://api.github.com/users/ignasi35/following{/other_user}","gists_url":"https://api.github.com/users/ignasi35/gists{/gist_id}","starred_url":"https://api.github.com/users/ignasi35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignasi35/subscriptions","organizations_url":"https://api.github.com/users/ignasi35/orgs","repos_url":"https://api.github.com/users/ignasi35/repos","events_url":"https://api.github.com/users/ignasi35/events{/privacy}","received_events_url":"https://api.github.com/users/ignasi35/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T20:16:22Z","updated_at":"2018-11-28T20:16:22Z","author_association":"MEMBER","body":"I'm not sure I get your point:\r\n\r\n```\r\nignasi at imslightbend in ~/wip/deleteme\r\n$ sbt new lagom/lagom-scala.g8\r\n[info] Loading settings from idea.sbt,plugins.sbt ...\r\n[info] Loading global plugins from /Users/ignasi/.sbt/1.0/plugins\r\n[info] Set current project to deleteme (in build file:/Users/ignasi/wip/deleteme/)\r\n[info] Set current project to deleteme (in build file:/Users/ignasi/wip/deleteme/)\r\nname [Hello]:\r\norganization [com.example]:\r\nversion [1.0-SNAPSHOT]:\r\npackage [com.example.hello]:\r\n\r\nTemplate applied in ./hello\r\nignasi at imslightbend in ~/wip/deleteme\r\n$ cd hello/\r\nignasi at imslightbend in ~/wip/deleteme/hello\r\n$ sbt \"show watchSources\" | grep base | sort | uniq -c | sort -n\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api/src/main/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api/src/main/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api/src/main/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api/src/main/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api/src/test/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api/src/test/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api/src/test/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api/src/test/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl/src/main/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl/src/main/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl/src/main/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl/src/main/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl/src/test/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl/src/test/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl/src/test/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl/src/test/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api/src/main/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api/src/main/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api/src/main/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api/src/main/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api/src/test/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api/src/test/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api/src/test/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api/src/test/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl/src/main/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl/src/main/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl/src/main/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl/src/main/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl/src/test/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl/src/test/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl/src/test/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl/src/test/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/src/main/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/src/main/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/src/main/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/src/main/scala-2.12,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/src/test/java,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/src/test/resources,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/src/test/scala,\r\n   1 [info]   base = /Users/ignasi/wip/deleteme/hello/src/test/scala-2.12,\r\n   2 [info]   base = /Users/ignasi/wip/deleteme/hello,\r\n   2 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-api,\r\n   2 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-impl,\r\n   2 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-api,\r\n   2 [info]   base = /Users/ignasi/wip/deleteme/hello/hello-stream-impl,\r\nignasi at imslightbend in ~/wip/deleteme/hello\r\n$\r\n```"}}
{"actor":{"display_login":"ignasi35"}}