-
Notifications
You must be signed in to change notification settings - Fork 12
Add lazy loading for handlers #6
Add lazy loading for handlers #6
Conversation
Hello there!, it seems that this brakes some of the tests, can you please check that and also write a test for the code you want to commit. Thanks! |
Thanks for response, i will work around and update pull request again, most probably this weekend. |
Hello, There was different things: First is your comment; i need to test my code(of course), although, my code does not brake tests, even so, i added similar test than LaravelLocator overriding general config and all is ok. I need a little more time to make better tests. Second the real test brake was in generatorTest file, because file path does not match with real file paths, i fix it. and for last, Travis build break on HHVM because : HHVM is no longer supported on Ubuntu Precise. Please consider using Trusty with Thanks again for that great package, we are using in production on a medium/hi traffic site and it works like a charm. Cheers. |
Let me look into this tonight. Thanks! |
Thanks again, After a little workaround, i fix tests and give a nice coverage for new class. But our use case is some different to the described in the Readme file. And i dont know if this commits has sense for described usage. Here is an example:
Then we have custom provider for bus
|
I see you are using tactician.
Will have to see if this works for the default command bus proposed in the package. Thanks for pointing this out though, i will try to work on some tests to see if that performance issue is presented with the other bus which I think it may be the case. |
any news on this? |
Merged on #14 |
In a bus with 32 handler, memory usage is reduced by 2-thirds
with LaravelLocator
with LaravelLazyLocator