Convert allocation to `@Native` leaf FFI calls
Open
package:ffi
- Dominant language
- Dart
- Stars
- 275
- Forks
- 144
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 47
Description
https://github.com/dart-lang/ffi/blob/main/lib/src/allocation.dart uses `DynamicLibrary.process` on non-Windows which can be converted to `@Native`s which default to process lookup.
We need to double-check if `ole32.dll` is always loaded, if so, we can also convert the Windows path to `@Native`.
Also, the calls should all be leaf-calls.
Contributor guide
Assessment
This issue has not been assessed yet.