Skip to content

use ExpressionTree.Compile(preferInterpretation: true) for Unity IL2CPP#1008

Merged
neuecc merged 2 commits intomasterfrom
use-lambda-interpreter
Aug 19, 2020
Merged

use ExpressionTree.Compile(preferInterpretation: true) for Unity IL2CPP#1008
neuecc merged 2 commits intomasterfrom
use-lambda-interpreter

Conversation

@neuecc
Copy link
Member

@neuecc neuecc commented Aug 16, 2020

related to #869 (and others).

ExpressionTree.Compile is automatically fallback to interpreter implementation for some AOT environments.
However, that doesn't seem to be the case with some of Unity's IL2CPP.
Therefore, I have explicitly specified it.

Note, Interpreter is slow, so it's best to avoid.
You might also want to consider implementing a workaround.

@neuecc neuecc merged commit ddecd2b into master Aug 19, 2020
@neuecc neuecc deleted the use-lambda-interpreter branch August 19, 2020 07:00
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

Successfully merging this pull request may close these issues.

2 participants

Comments