-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Non-documented slow performance of Props.Create(Expression) overload #4698
Comments
Ah, so these are the performance numbers of the Ok, we can document that - this overhead is from the lamba compiler we use to extract the actor type + constructor + arguments. I think it'd be useful for users to know that. |
There may be some opportunity to improve here. In a couple different projects I've had this issue and have some code that makes a best effort to avoid I tried out some code I had laying around for this, We can get about 10% improvement: Before:
After:
I'll make a PR with these code changes. |
@mralexes #4712 has been merged in, so next release you should see some improvement on |
Closing this since it was address by @to11mtm and there's not a lot of wiggle room for speeding up the compression compiler, AFAIK. The |
And check results
As you can see from the benchmark report, creation of Props using expression is very slow and impacts performance in scenarios with a big amount of short-lived or dynamically-created actors.
Since this issue is not described in the documentation here I propose to add at least a small warning about usage of this overload.
The text was updated successfully, but these errors were encountered: