On 27 Apr, Rik Griffin wrote in message
    <[email protected]>:

> One partial solution springs to mind for all this - use more dynamic
> areas. Say one area per page, then when when Netsurf discard the page,
> destroy the DA as well. Maybe extra DAs for cached content as well?
> 
> I am not familiar with the internal structures used to hold a page's data
> etc but is this worth looking in to?
> 
> One thing that springs to mind is that rather than just storing a pointer
> to some allocated memory, you'd need a reference to the DA as well.
> 
> In the past I've had cause to create a lot of DAs and RISC OS doesn't seem
> to suffer noticably with a hundred or so, as far as I remember.

You would have to be very careful about the maximum sizes, though, unless
these were known precisely before the area was claimed (I don't know if they
are or not).  Too small, and you may limit the ability to render complex
pages; too big, and you wave goodbye to the memory map.

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

Reply via email to