[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Small variable buffer?
From: |
Eric Dorland |
Subject: |
Re: Small variable buffer? |
Date: |
Tue, 21 Jun 2005 11:57:12 -0400 |
On Sun, 2005-06-19 at 15:11 +0200, Mark Burgess wrote:
> On Fri, 2005-06-17 at 12:39 -0400, Eric Dorland wrote:
> > Dorland
>
> You're right - this is an arbitrary decision, taken early on. The
> relevant sizes are
>
> CF_MAXVARSIZE 1024
> CF_BUFSIZE > CF_MAXVARSIZE
> CF_EXPANDSIZE > CF_BUFSIZE
>
>
>
> If you want to increase these sizes in cf.defs.h then make sure that you
> increase them all. A variable can be a part of a buffer, so if you
> expand MAXVARSIZE into a CF_BUFSIZE, there needs to be room for it...
Is there a good reason for it to still be so small? With list variables
especially you run into the limit quickly. With machines these days,
doubling or quadrupling this shouldn't make a significant impact on
memory usage. Dynamically sized variables would be best, but that's
probably cfengine 3 territory.
--
Eric Dorland
eric.dorland@mcgill.ca
WSG
514.398-5023 ext. 09562