🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2450

Re: void* type

#2450
From: Konrad Schwarz
Date: Mon, 01 Apr 1996 13:20
16 lines
1085 bytes
In article <4jmcnh$lqk@solutions.solon.com>, Claus Hirth <hirth@wand.franken.de> writes:
|> J. Kanze (kanze@gabi-soft.fr) wrote:
|> 
|> : BTW, I've found that a small optimizing trick in functions like this can
|> : sometimes work wonders for performance:
|> 
|> :     int
|> :     swap( void* a , void* b , size_t sz )
|> :     {
|> :         unsigned char   buffer[ EXPECTEDMAXSIZE ] ;
|> 
|> An even smaller "trick" : use a static array instead.

What improvement do you hope to gain with a static array?

Konrad Schwarz 
Technical Details
Message-ID: <4jol6l$1s9@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4iepre$ag7@solutions.solon.com> <4ii34g$nlp@solutions.solon.com> <4jibl5$89u@solutions.solon.com> <4jmcnh$lqk@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: schwarz@hermi.complang.tuwien.ac.at (Konrad Schwarz)
Newsgroups: comp.lang.c.moderated
Subject: Re: void* type
Date: 1 Apr 1996 07:20:21 -0600
Organization: Technische Universität Wien, Vienna, Austria
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4jol6l$1s9@solutions.solon.com>
References: <4iepre$ag7@solutions.solon.com> <4ii34g$nlp@solutions.solon.com> <4jibl5$89u@solutions.solon.com> <4jmcnh$lqk@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com