-
Notifications
You must be signed in to change notification settings - Fork 213
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
RuntimeBinder Memory leaks #308
Comments
PR welcome |
Hi! For example: I know that's not a cheap operation because expression threes should be compiled. But i think that's it should be faster then DLR. What do you think? |
Inside of the Binders, this is specific to objects that implement IDynamicMetaObjectProvider... so taking the time to see how the CLR deals with that interface and using that as a starting point would be a good approach.
In fact, if you look a few lines up from the binder in the same file, you'll see this comment: https://github.com/rexm/Handlebars.Net/blob/1f09312a7854da74916531b17009b7c3a122f140/source/Handlebars/Compiler/Translation/Expression/PathBinder.cs#L171
|
Yea, sorry, didn't notice |
What do you think about CallSite caching? I think it's should help. The main problem occurs when creating CallSite objects.
|
I don't understand how this api can help. Usually this api uses for custom DynamicObject implementation and contains describing get methods of custom DynamicObject. Could you please clarify idea for using this api. |
I have just implemented some solution. What do you think?
|
That all makes sense to me except I don’t entirely understand the Lambda wrapper bit - can you explain? |
Yes lambda wrapper could be simplified. I think we could replace Lambda wrapper with this
These lines do not make sense.
|
The |
|
Was this ever fixed? |
Handlebars-Net/issues/294 - Handlebars-Net/issues/264 - Handlebars-Net/issues/151 - Handlebars-Net/issues/301 Handlebars-Net/issues/344 Handlebars-Net/issues/338 Handlebars-Net/issues/336 Handlebars-Net/issues/308 (for Newtonsoft.Json) Handlebars-Net/issues/307 Handlebars-Net/issues/243 Handlebars-Net/issues/194 Handlebars-Net/issues/122
Method GetProperty(object target, string name) in the PathBinder.cs and IteratorBinder.cs cause memory leak in highload application. Could you use another way for getting property value instead of using RuntimeBuilder class?
![image](https://user-images.githubusercontent.com/5823289/62298546-b6e89000-b462-11e9-8d2b-19c933dfef49.png)
The text was updated successfully, but these errors were encountered: