[Gambas-devel] About gb.gsl components

Emil Lenngren emil.lenngren at ...176...
Sun Jul 8 22:46:46 CEST 2012


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.

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

> Le 08/07/2012 22:25, Emil Lenngren a écrit :
> > What is the point having "has_convert" and "has_operators" and so on?
> > Isn't it easier to simply check if the "operators" and "convert"
> > pointers are NULL or not? That would also save processor cycles on x86
> > and x86_64 :)
> >
> > /Emil
>
> The last time I checked with valgrind, x86 and X86_64 are faster to test
> a bit than to check an entire pointer.
>
> --
> 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/3c0f5734/attachment.html>


More information about the Devel mailing list