[MonoDevelop] Little program super slow on Mono, and super fast on ms .net

David S buttink at gmail.com
Wed Aug 4 16:42:33 EDT 2010


We already had this huge discussion about String comparing
here<http://mono.1490590.n4.nabble.com/String-comparisons-slow-tp2296525p2296525.html>
but
besides that you could add a
StopWatch<http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx>
and
time each call. You could also try the mono
profiler<http://www.mono-project.com/Performance_Tips>
.

(sorry Stifu I accidently hit reply not reply all)

On Wed, Aug 4, 2010 at 1:26 PM, Stifu <stifu at free.fr> wrote:

>
> At first sight, the foo.StartsWith call could be optimized by passing
> StringComparison.OrdinalIgnoreCase as the second parameter. That may not
> the
> bottleneck here, but this may help a little.
>
>
> Nevo Script wrote:
> >
> >   Here's the little code: http://pastebin.com/RT0a4GvG
> >
> > Hello!
> > It's extremly slow on Mono, both Linux and Windows. But super fast on MS
> > .Net.
> > Is it HtmlAgilityPack? When I say it's slow... I look at the printing...
> > how fast it's printing the list.count...
> >
> > I've tried to rewrite the foreach to for... didn't help.
> >
> > Just saying, maybe some smart people can take a look. This isn't
> > anything important, was just having fun.
> >
> > It's the newest version of HtmlAgilityPack.
> >
> > Thank you.
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >
> >
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Little-program-super-slow-on-Mono-and-super-fast-on-ms-net-tp2313813p2313883.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20100804/92070cf5/attachment-0001.html 


More information about the Monodevelop-list mailing list