diff README @ 27906:c183f7b79541

context: don't use util.cachefunc due to cycle creation (issue5043) util.cachefunc stores all arguments as the cache key. For filectxfn functions, the arguments include the memctx instance. This creates a cycle where memctx._filectxfn references self. This causes a memory leak. We break the cycle by implementing our own memoizing function that only uses the path as the cache key. Since each memctx has its own cache instance, there is no concern about invalid cache hits.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 17 Jan 2016 12:10:30 -0800
parents 4b0fc75f9403
children 76b171209151
line wrap: on
line diff