mono / gir-sharp

C# binding generator for GIR format
MIT License
12 stars 10 forks source link

Unsafe code optimizations #60

Open Therzok opened 6 years ago

Therzok commented 6 years ago

Figure out where we can replace normal generation with unsafe generation for people who want to go without the marshalling overhead.

sundermann commented 6 years ago

How much faster is unsafe code though, is it worth it?

Therzok commented 6 years ago

There are some cases where unsafe marshalling is better (i.e. arrays, do you don't have to allocate a managed array)