|
From: Jonathan T. <jt...@ae...> - 2005-06-04 12:00:40
|
On Thu, 2 Jun 2005, Ethan Merritt wrote:
> On Wednesday 25 May 2005 05:03 am, Lars Hecking wrote:
>>
>> may I ask to advance the #define'd compile-time parameter
>> MAX_NUM_VAR
>> in src/syscfg.h from 5 to something like 20 or so? :-)
>
> The arrays that use MAX_NUM_VAR are horribly wasteful,
> particularly if we bump it up to a larger number.
> e.g.: char c_dummy_var[MAX_NUM_VAR][MAX_ID_LEN+1];
> would be reserving 20*50 chars of storage to hold what
> is usually 2-3 instances of single-characters names like
> "u", "v" or "w".
>
> How about changing these arrays to hold dynamically
> allocated pointers instead. [[...]]
Is it worth complexifying the code to save 1K bytes of memory?
Does current gnuplot still run on MS-DOS 16-bit systems?
ciao,
--
-- Jonathan Thornburg <jt...@ae...>
Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
Golm, Germany, "Old Europe" http://www.aei.mpg.de/~jthorn/home.html
"Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
-- quote by Freire / poster by Oxfam
|