Uh oh!
There was an error while loading. Please reload this page.
[browser] Move reflection from C# to C - #98534
Conversation
ghost
commented
Feb 16, 2024
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsTo address size+perf regression #98391 (comment)
|
Uh oh!
There was an error while loading. Please reload this page.
pavelsavara
commented
Feb 16, 2024
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| { | ||
| throw new ArgumentNullException(nameof(fullyQualifiedName)); | ||
| } | ||
| var (assemblyName, nameSpace, shortClassName, methodName) = ParseFQN(fullyQualifiedName); |
There was a problem hiding this comment.
Since we don't need parsed values in C#. Would it make any difference to parse it in C? Or in JS?
There was a problem hiding this comment.
JS is in different thread, needs to pass via JS interop as C# String
C is in current/managed thread and needs to be UTF8.
I guess this is OK.
To really optimize it we should get rid of reflection and use [UnmanagedCalersOnly] from roslyn code gen. That will require API change tho.
To address size+perf regression #98391 (comment)