[Mono-list] Is mono suitable for building an XML-RPC Sever?

Jonathan Pryor jonpryor at vt.edu
Thu Aug 2 08:53:47 EDT 2007


On Thu, 2007-08-02 at 20:31 +0800, Peter Cai wrote:
> In the last paragraph,  did you mean that I should reuse buffer or
> object as much as possible to get a better performance on MONO?

There only one answer to any performance-related question: profile.

In some circumstances, re-using the buffer may be faster.  In others,
creating a new one is faster.  That could change depending on a number
of factors, not least of which is the GC you're using (and Mono will be
getting a new GC with 2.0).

So the only way to know for sure is to write the app (or a minimal test
app) and profile it to see where time is _actually_ being spent, instead
of just speculating.

Under mono, you can use the --profile option to turn on profiling.  See
the mono(1) man page for more information (search for PROFILING).

 - Jon




More information about the Mono-list mailing list