| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Adding new `interop` `type` cache holding a `bool`, true if its an `exception`. - Adding a `setter` and `getter` cache for the `propertyobject`.
| var instance = Expression.Convert(obj, methodInfo.DeclaringType); | ||
|
|
||
| var value = Expression.Parameter(typeof(object)); | ||
| var argument = Expression.Convert(value, methodInfo.GetParameters()[0].ParameterType); |
There was a problem hiding this comment.
Can methodInfo.GetParameters() return null or empty list?
Sorry, something went wrong.
There was a problem hiding this comment.
Since methodInfo is the setter I don't think it should happen, but I'll add a check to be in the safe side 👍
Sorry, something went wrong.
|
|
||
| var expressionCall = Expression.Call(instance, methodInfo, argument); | ||
|
|
||
| return Expression.Lambda<Action<object, object>>( |
There was a problem hiding this comment.
❤️
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What does this implement/fix? Explain your changes.
How Has This Been Tested?
Tested exeucting QuantConnect unit and regression tests and indicator performance benchmark:
[MASTER]


[PR]
[MASTER]
160.95 seconds at 5k data points per second. Processing total of 782,223 data points.
158.54 seconds at 5k data points per second. Processing total of 782,223 data points.
159.95 seconds at 5k data points per second. Processing total of 782,223 data points.
[PR]
132.27 seconds at 6k data points per second. Processing total of 782,223 data points.
130.07 seconds at 6k data points per second. Processing total of 782,223 data points.
129.88 seconds at 6k data points per second. Processing total of 782,223 data points.
[PR] has a 15-20% speed improvement.
Note
Testing showed no signficant impact on the BasicTemplateAlgorithm performance benchmark:
python_benchmark_algo.txt
Does this close any currently open issues?
Related to QuantConnect/Lean#2925