ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] cleaning event handler


From: Jonathan Walther
Subject: Re: [RP] cleaning event handler
Date: Fri, 20 Apr 2001 07:39:28 -0700 (PDT)

-----BEGIN PGP SIGNED MESSAGE-----

I could be wrong on this, but I was always tought in school that using
"register" keyword made a variable off-limits for optimizations.  Plus
it doesn't even gaurantee that the variable will be stuffed in a register
in the first place; its just a hint.  Have you benchmarked the two
different ways and found a difference?  Less code, more code?  Faster,
slower?

Jonathan

On Thu, 19 Apr 2001, shawn wrote:
> >- -  register void *value = malloc (size);
> >+  void *value = malloc (size);
> 
> What is the reasoning for this section of the patch?

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBOuBKIcK9HT/YfGeBAQGRtAQAjDRW3oAqRDBlIY5m+A/jidEhunbqodAa
byerWCJ1xKEVb0UOQeB0aOr6UfeC/NFydd8R9FDzS3/xTBn7Nc5+uACxBXb2ZdZw
oNwJ7ZbN2tmTk9URMZywgI5LIXw+zjqfrodzhQdwm+vwa4dVRAD+CYbcO+is5aat
JdqCMiw5Hbo=
=taAm
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]