Hi, Our existing content caching strategy breaks down in the face of string internment contexts being shared between HTML documents and the stylesheets they reference. There's potential for bad things like reading through stale string pointers to occur.
To avoid this badness, we've got a hack that prevents all unknown content types from being shared. This is a recent introduction, as a result of discovering the badness described above. The downside is that it effectively ensures that *no* contents are shared. Thus, our memory usage is now sky high. I've sketched out an improved cache design [1], that removes these problems (and adds scope for disk caching, too, although that's a secondary concern). I'd appreciate comments on this, as it's entirely possible that I've missed something. J. 1. http://source.netsurf-browser.org/trunk/netsurf/Docs/ideas/cache.txt