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

[C#] Using C# dynamic type instead of reflection for dynamic method calls? #5825

Closed
vroad opened this issue Nov 15, 2016 · 0 comments · Fixed by #11551
Closed

[C#] Using C# dynamic type instead of reflection for dynamic method calls? #5825

vroad opened this issue Nov 15, 2016 · 0 comments · Fixed by #11551
Assignees
Labels
platform-cs Everything related to c#
Milestone

Comments

@vroad
Copy link
Contributor

vroad commented Nov 15, 2016

According to these articles, on Dynamic Language Runtime (DLR) it's faster to execute dynamic code with the same type as previous execution, thanks to "Call site caching". Could Haxe use this feature instead of reflections? This could improve dynamic invocation performance on C# targets.

https://msdn.microsoft.com/en-us/library/dd264736.aspx
https://msdn.microsoft.com/en-us/library/dd233052.aspx

The problem here is that DLR needs .NET 4.0 and is not compatible with environments like Xamarin.iOS, where dynamic code generation is not allowed, so we probably cannot enable this feature by default.

https://developer.xamarin.com/guides/ios/advanced_topics/limitations/#System.Reflection.Emit

@Simn Simn modified the milestone: 4.0 Jan 9, 2017
@markknol markknol added the platform-cs Everything related to c# label Jul 12, 2017
@Simn Simn removed this from the Release 4.0 milestone Apr 17, 2018
@Simn Simn added this to the Bugs milestone Apr 18, 2018
@waneck waneck modified the milestones: Bugs, Design May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-cs Everything related to c#
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants