in reply to tuning hash memory usage

Why does each Content instance keep a hash to map filenames to timestamps, rather than keeping a single global hash to do the same? If you removed that hash from Content, a Content would only have to keep a list of dependent files.

And you you calculating the full closure for dependency files, or just keeping a 1-deep list? You might file that it pays in memory savings to rederive a full close on demand.

Replies are listed 'Best First'.
Re: Re: tuning hash memory usage
by jmason (Novice) on Nov 21, 2000 at 23:33 UTC
    Good question... Er, I've just taken a look, and it doesn't keep a hash, it's an array. oops. So in effect it is just a list of dependent files and my specification of the problem was wrong. sorry ;)

    Are you calculating the full closure for dependency files, or just keeping a 1-deep list?

    It is a full closure -- but that's not what's taking the memory here. I plan to refactor that alright -- but not just yet...