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

Performance #244

Open
Daythril opened this issue Aug 7, 2024 · 1 comment
Open

Performance #244

Daythril opened this issue Aug 7, 2024 · 1 comment

Comments

@Daythril
Copy link

Daythril commented Aug 7, 2024

1st-of-all, thanks for this tool. I use NHibernate and wanted a way to make my computed properties usable in LINQ expressions that convert to SQL. I had it working with code similar to NeinLinq where you create a static Expression and annotate the method you want to convert to SQL so that NH knows to substitute that Expression tree for it, but DelegateDecompiler is much easier to use. I think it also covers more situations, but I haven't yet established that.

Now, I find that the first time DD expands the LINQ for a Computed property there's quite a bit of overhead -- on the order of a full second on my 12th Gen Intel(R) Core(TM) i7-1280P 1.80 GHz with 32 GB of RAM.

There's no overhead on subsequent use of the same query (perhaps even of the same method combined with other elements in the LINQ, but I don't remember), so I'm assuming you're caching the subtrees.

Can you please point me to some documentation that explains how these things work, and perhaps offers advice for how to optimize?

Thanks in advance.

@NetMastr5
Copy link

@Daythril , this sounds like it might be the performance issue I reported when migrating from 0.31.0 to 0.32.0, which is still open. You can try downgrading to 0.31.0 to see if your performance issue goes away.

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

No branches or pull requests

2 participants