-
-
Notifications
You must be signed in to change notification settings - Fork 30
Trimming and NativeAOT compatible #42
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
Conversation
| } | ||
| } | ||
|
|
||
| [MethodImpl(MethodImplOptions.AggressiveInlining)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method will be inlined by the compiler so it won't affect the performance at all.
|
@hez2010 first of all thanks for the contribution. Question: do we need to change something in the NuGet package generation? |
|
I'm just wondering just for clarity when reading the code, if we can set the attribute What do you think? |
Unfortunately, |
|
Also, it seems that the tests in the CI pipeline are hanging due to the x68/x64 issue. |
|
Now all passed green! |
|
Well I'm running "Debug" and "Any CPU" environments, but it seems that VS wants x86 not sure why, let's keep this for compatibility since x86 is compatible with both but the other way around ;-) |
No worries, we can leave it as it. |
|
To test NativeAOT, you can change the demo project to net7.0 and use But I'm thinking that maybe we can reimplement the searcher using built-in Regex instead of oniguruma in the future? |
It would be great to have 100% managed code and get rid of native deps! I'm not sure how hard it would be. Currently, grammar definition files (which have been taken from Visual Studio code) talk Oniguruma dialect, so I don't know how hard would be to write a mechanism that converts those regexes to something understandable by C# built-in regex syntax. |

Making TextMateSharp trimming and NativeAOT compatible.