Generated content: counters and quotes

Allan Sandfeld Jensen kde at carewolf.com
Tue Feb 15 21:47:45 GMT 2005


On Tuesday 15 February 2005 22:15, Leo Savernik wrote:
> After you having committed your counter-patch (no pun intended ;-) ), I
> want to warm up this old thread.
>
> You state that every render object may have a counter attached. Point
> taken. However, nearly no actual render object *does* have a counter. Hence
> this additional pointer amounts to a lot waste of space on large documents.
> Therefore, I propose to move the counter lists to a QPtrDict within
> DocumentImpl, and reference it from there. The memory and runtime overhead
> of the dict should be negligible compared to the memory overhead of an
> additional member in RenderObject.
>
Sounds interesting. Notice however that all lists and list-items now have a 
counter attached.

With a global structure we really just need a fast way to lookup:
name*render-node -> counter-node

`Allan




More information about the kfm-devel mailing list