Re: Poll: global buffers

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 07/20/01


George Greer wrote:
>
> Who thinks the global buffers (buf, buf1, buf2, arg) need to go?
> Who wants to keep them?
> and why?

Get rid of 'em.  Any compiler worth anything will optimize the usage of
memory anyways.  They have the potential to cause problems with two
functions trying to use the same buffer at the same time and they go
against commonly recommended coding practices (ie you should not make
globals that are meant for local function use).  Also they take up
memory when not in use that could be allocated to other temporary
variables.

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST