[luatex] memory usage

Taco Hoekwater taco at elvenkind.com
Wed Jun 30 10:17:47 CEST 2010


On 06/30/2010 09:50 AM, Patrick Gundlach wrote:
>
>
>>> does that mean I forgot to clear the 2 hlists, 4 vlists, 4 glues
>>> etc.?
>>
>> Essentially, yes. But note:
>>
>> 1. There is some nesting. For example, the attributes are always
>> inside attribute lists and attribute lists are usually attached to
>> other nodes, and [hv]lists are likely to contain various other
>> nodes.
>
> my usecase is
>
> node.new(glyph_node) node.set_attribute(....) node.hpack(...)
> node.ligaturing(..) node. node.vpack() node.write(this node)
>
> My naive view tells me that with node.write should clear/flush all
> these created nodes.

Yes, it should.

> Which ones do I have to kill manually?
> Background of my question is that my application uses several gig of
> ram and stalls my little notebook (nodebook?)

A few dozen nodes can not be the problem, as that is less than
one kb. You had better check how much memory is taken up by
the lua state (status.luabytes iirc)

Best wishes,
Taco


More information about the luatex mailing list