On Thu, Dec 27, 2007, Jeff Johnson wrote:
> On Dec 27, 2007, at 2:37 AM, Ralf S. Engelschall wrote:
>
>>> So do you wish to raise the size of the parse buffer to, say, 200K?
>>> Anything else is going to hard to fit into rpm-5.0 ...
>>
>> The problem is that a few hundret KB might be still too small. I think
>> to really be able to put larger amounts into a tag we really would have
>> to implement the dynamic buffer reallocation. Any type of static buffer
>> just slightly moves forward the time when it starts breaking...
>>
>> Nevertheless we should increase from the rather small 10KB to perhaps at
>> least something like 100KB. This way it obviously is still unusable for
>> something like my "Environment" approach (where the data exponentially
>> explodes even under tree pruning), but at least other tag hacks then
>> work...
>
> So add a macro to size the buffer and use malloc instead.
now done ;-)
> Personally, I'd just add the quick hack, choose a value that gets your
> OpenPKG job done for now. The difference between 100K and 300K is hardly
> worth the effort of discussing, both are still a quick hack.
Now it is configurable and hence I'll increase the value in my
global OpenPKG "rpmmacros" to a few MB in size...
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
RPM Package Manager http://rpm5.org
Developer Communication List [email protected]