{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/3822","repository_url":"https://api.github.com/repos/Particular/NServiceBus","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3822/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3822/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3822/events","html_url":"https://github.com/Particular/NServiceBus/issues/3822","id":159836569,"number":3822,"title":"Assembly scanning makes startup very slow","user":{"login":"valeriob","id":1522516,"avatar_url":"https://avatars.githubusercontent.com/u/1522516?v=3","gravatar_id":"","url":"https://api.github.com/users/valeriob","html_url":"https://github.com/valeriob","followers_url":"https://api.github.com/users/valeriob/followers","following_url":"https://api.github.com/users/valeriob/following{/other_user}","gists_url":"https://api.github.com/users/valeriob/gists{/gist_id}","starred_url":"https://api.github.com/users/valeriob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valeriob/subscriptions","organizations_url":"https://api.github.com/users/valeriob/orgs","repos_url":"https://api.github.com/users/valeriob/repos","events_url":"https://api.github.com/users/valeriob/events{/privacy}","received_events_url":"https://api.github.com/users/valeriob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Type:%20Discussion","name":"Type: Discussion","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-12T16:51:58Z","updated_at":"2016-06-13T12:11:47Z","closed_at":null,"body":"I'm tring to move from 5 to 6, and i disovered that configuration.AssembliesToScan has been removed, now just the act of scanning the bin directory takes 3s on every startup, and it's added on every dev cycle.\r\n\r\nFor example in my current project it takes 3.8s to run AssemblyScanner.GetScannableAssemblies the first time (a lot of those assembly will be loaded eventually anyway) and 1s the next times, just to handle a very predictable result : \r\n2 usefull assemblies found (nservicebus.core and myApplication) and 87 skipped ones.\r\n\r\nI do not think that using reflection to load modules is a very good idea, you get poor performances, lack of control, and platform depencency (see dotNet Core, and dotnet native). Do you have in mind to move to a more explicit way to load dependencies and modules ? like using the already present ioc container ?\r\n\r\nThanks,\r\nValerio"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/225563639","html_url":"https://github.com/Particular/NServiceBus/issues/3822#issuecomment-225563639","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/3822","id":225563639,"user":{"login":"valeriob","id":1522516,"avatar_url":"https://avatars.githubusercontent.com/u/1522516?v=3","gravatar_id":"","url":"https://api.github.com/users/valeriob","html_url":"https://github.com/valeriob","followers_url":"https://api.github.com/users/valeriob/followers","following_url":"https://api.github.com/users/valeriob/following{/other_user}","gists_url":"https://api.github.com/users/valeriob/gists{/gist_id}","starred_url":"https://api.github.com/users/valeriob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valeriob/subscriptions","organizations_url":"https://api.github.com/users/valeriob/orgs","repos_url":"https://api.github.com/users/valeriob/repos","events_url":"https://api.github.com/users/valeriob/events{/privacy}","received_events_url":"https://api.github.com/users/valeriob/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T12:11:47Z","updated_at":"2016-06-13T12:11:47Z","body":"After a quick test i can say that restoring the method AssembliesToScan reduces my startup cost by 1.5s\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1522516/16007051/96e6d9ba-3170-11e6-9d74-2a9190c23038.png)\r\n"}}
{"actor":{"display_login":"valeriob"}}