[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Re: Lynx problems

From: Leonid Pauzner
Subject: Re: lynx-dev Re: Lynx problems
Date: Thu, 20 Feb 2003 01:34:52 +0300 (MSK)

19-Feb-2003 12:43 Ilya Zakharevich wrote:
> On Tue, Feb 18, 2003 at 10:41:56PM -0800, Ilya Zakharevich wrote:
>> a) HText_RemovePreviousLine() does not return the previous line to the pool;
>>    is not this a leak?

>   Pools only growth. We cannot return memory back to the pool (*).

> This will not go.  How can one remove the logic of allocation from
> pool, replacing it by malloc() etc?  Can you make such an allocation
> conditional?

It is possible: just redefine POOLallocHTLine to allocHTLine (see pre dev.11
version for this macros, and HText_free), define POOLfreeHTLine and use it
as it was in my previous letter, and finally restore free loop in

> To get better table support, I need to be able to freely
> allocate/deallocate lines, including those deep inside the document.

Currently, we double the space in the worst case (=each line is in Stbl).
This is not bad having in mind that most documents have smaller tables,
and 2^N malloc implementations waste 1/4 space at average. Plus performance.

The situation differs if you need multiple passes for your improved table

> Thanks,
> Ilya

> ; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]