diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-09-08 08:52:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 08:52:32 +0300 |
commit | d7430ba1fd9913c3d97e37208fbd01c82cb8486c (patch) | |
tree | 0d008f90183d4915849e00f3160297a81398ad20 /netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/InternalsVisibleToAttribute.cs | |
parent | 810f0cfc0aaf5b8c44004ed0c1116dc97280bae8 (diff) |
Move Marshal memory allocation methods into CoreLib shared partition (#20353)
In addition to benefits from better sharing between runtimes, this change avoids unnecessary layers of wrappers on Unix and makes these methods significantly faster on average for small sizes. For example:
`for (int i = 0; i < 100000000; i++) Marshal.FreeHGlobal(Marshal.AllocHGlobal(100));`
Before this change: 5430ms
After this change: 2030ms
Co-authored-by: jkotas <jkotas@users.noreply.github.com>
Diffstat (limited to 'netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/InternalsVisibleToAttribute.cs')
0 files changed, 0 insertions, 0 deletions