[Gambas-devel] About gb.gsl components

Emil Lenngren emil.lenngren at ...176...
Sun Jul 8 23:07:10 CEST 2012


Maybe..

I think it is very strange that interpreted functions with debugging flags
sometimes are faster than without...

This code:
  Dim i As Integer = 1
  While i <= 80000000
    Inc i
  Wend

Takes 3.48 seconds with debugging flags, and 5.66 seconds without :/
I think it should be the opposite.

/Emil

2012/7/8 Benoît Minisini <gambas at ...1...>

> Le 08/07/2012 22:46, Emil Lenngren a écrit :
> > Hmm. I just checked it up. Null pointer comparison ends up in a "cmp"
> > instruction, and bit test ends up in a "test" instruction. Both take the
> > same number of clock cycles..
> >
> > So in theory it should make no difference at all.
> >
>
> Maybe the cache changes something then?
>
> --
> Benoît Minisini
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120708/4a5cb717/attachment.html>


More information about the Devel mailing list