On Wed, Feb 04 2015, Tapani Pälli wrote: > What would you think about changing this to use some defined maximum > size (in MB)? I think for the user size is what matters and it could be > a configurable option, number of items seems a bit vague and hard to > predict (?)
Yes, changing over to a maximum size would provide a nice, configurable knob for the user. I don't see an easy way to get the current "index file" approach to allow for size-based management. But the index file is also the only piece of code that's still got some FIXME comments in it that I'm not sure how to best address. I think I'll call the index file a premature optimization and just pull it out. That will make the initial patch provide a cache of unlimited size (no replacement at all). Then, I'll follow up with a patch that provides some sort of size-based replacement policy. > Will there be some further verification here if the file contents are > what is expected or is this done in higher level where cache is > called? I would expect any verification to take place at a higher level. -Carl
pgph1MWfIKFpZ.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev