Making use of LibraryImport
to reduce marshalling, smaller optimizations
#194
Labels
good first issue
Good for newcomers
This project may benefit a lot from using
LibraryImport
-Attribute instead ofDllImport
(or combined with? idk if and how fallback would work)As DuckDb is in Process, reducing the marshalling overhead by introducing LibraryImport may further increase throughput.
Side note:
Things like
StringVectorDataReader
may also benefit from usingstring.Create(....)
to reduce allocations to just a single "string", removing the additionalnew char[...]
allocation.Also
DuckDB.NET.Data.Extensions.GuidConverter
may benefit a lot from usingSpan<char> buffer = stackalloc char[36]
to build the guid-representation in memory without allocating at all.The text was updated successfully, but these errors were encountered: