Porting C# code
Brien
reply at tolist.com
Fri Jan 8 07:45:39 PST 2010
Iivari Mokelainen Wrote:
> Every managed->unmanaged call is checked somehow, and there was an
> attribute which lets you do pinvoke calls extremely fast but unsafe.
> printf perfomance was pretty much the same as in C++ with that
> attribute. Its used internally to do OS calls very fast, iirc it was
> undocumented. Try some disassemblers on .net framework, mainly parts
> that do OS calls.
>
> Good Luck
>
> - data
Pinvoke is no good for functions that are fast and invoked a lot.
Here's some good proof
http://community.opennetcf.com/articles/cf/archive/2008/01/31/performance-implications-of-crossing-the-p-invoke-boundary.aspx
-Brien
More information about the Digitalmars-d
mailing list