Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad performance #79

Closed
reservoir-dogs opened this issue May 5, 2020 · 5 comments
Closed

Bad performance #79

reservoir-dogs opened this issue May 5, 2020 · 5 comments
Assignees
Labels

Comments

@reservoir-dogs
Copy link

reservoir-dogs commented May 5, 2020

In AspNet Core 3.1.2, I am requesting the resolution of a dependency list, but the longer the list, more the performance degrades exponentially.

https://github.com/reservoir-dogs/WebApplicationStashboxPerformance
In this project, you can vary the number of dependencies in the ClassGenerator.tt file

For 10, the result is : {
"elapsed": {
"totalSeconds": 0.0264865
},
"count": 9
}

For 100, the result is : {
"elapsed": {
"totalSeconds": 0.9636601
},
"count": 99
}

For 200, the result is :
{
"elapsed": {
"totalSeconds": 4.2962879
},
"count": 199
}

Without StashBox and 1000 instances, the result is :
{
"elapsed": {
"totalSeconds": 0.0807929
},
"count": 999
}

@z4kn4fein
Copy link
Owner

Hey, thanks for reporting this! I found the root cause of this behavior, I'm working on the fix now.

@reservoir-dogs
Copy link
Author

Hello,

When can you deliver the fix ?

@z4kn4fein
Copy link
Owner

Hi,

I'm planning to finish the preparation for the release this week, probably the end of this week.
Thanks for your patience!

@z4kn4fein z4kn4fein self-assigned this May 20, 2020
@z4kn4fein z4kn4fein added the bug label May 20, 2020
@z4kn4fein z4kn4fein added this to the v3.1.0 milestone May 20, 2020
@z4kn4fein
Copy link
Owner

Hey,
Sorry for the long delay, just wanted to notify you that I released the version which contains the fix for this issue.

@z4kn4fein z4kn4fein modified the milestones: v3.1.0, v3.1.1 Jun 9, 2020
@reservoir-dogs
Copy link
Author

I tested it and it works!
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants