mhowlett / NNanomsg

.NET binding for nanomsg
MIT License
179 stars 52 forks source link

Adds SuppressUnmanagedCodeSecurity attributes to native import classes. #1

Closed kwpatrick closed 10 years ago

kwpatrick commented 10 years ago

This typically produces a moderate reduction in P/Invoke overhead.

kwpatrick commented 10 years ago

Cool, I'm looking at some of the other things you identified as well. Hopefully I can contribute some less trivial stuff soon!

Not many scenarios rely on code access security, and those probably wouldn't be allowed to load a random native DLL anyways, so I think that this is safe overall. I believe that I can cite System.Data.SqLite as a popular library which takes a similar approach to handling its native interop, if memory serves.

mhowlett commented 10 years ago

I just created issues for the two most obvious things to me that could be done... i'll get to them at some point, but right now everything seems to be humming along just nicely for the task i need it for..