[Mono-list] [Gtk-sharp-list] pinvoke and benchmarks
Chris Howie
cdhowie at gmail.com
Tue Sep 16 12:37:13 EDT 2008
On Fri, Sep 12, 2008 at 11:22 AM, Martin (OpenGeoMap)
<martin at opengeomap.org> wrote:
> is it better used a library only created with C or the pinvoke is fast???
> In my imagination i see the pinvoke system trying to find a funtion
> every time and if i have 10 million of lidar data perhaps this is really
> slowly....
I doubt that Mono is so dumb that it doesn't remember function entry
points. More likely, it's taking some time to marshal data over the
managed boundary.
Without seeing any code it's going to be difficult to diagnose
anything. Note that things like Gtk# make heavy use of p/invoke and
seem fairly fast, so I don't think the use of p/invoke alone is the
problem.
(Also, this question would be better directed to the main Mono mailing
list, as it has nothing to do with Gtk#.)
--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
More information about the Mono-list
mailing list