From cf56b43ebf75f73e697ca6572709e984e6657ccb Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 5 Jun 2016 16:34:10 +0100 Subject: [PATCH] notes --- TODO | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/TODO b/TODO index 78ccb86f..2c996954 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,26 @@ +- we free buffers on vips__buffer_shutdown(), called from thread shutdown, + but this won't happen for the main thread until program exit! + + therefore any buffers allocated on the main thread will never leave cache, + and will eventually take over, forcing all operations out + + we need to free buffers on image close, not thread exit + + structure: + + thread private -> + VipsBufferThread * -> hash(im) -> + VipsBufferCache * -> + array of VipsBuffer + + we currently free VipsBufferThread on thread exit, instead we must free + VipsBufferCache on image close + + alternative: keep the current thing, but keep a special note of the main + thread VipsBufferCache ... on image close, remove any buffers just from that + + we'd need vips__thread_main to track the thread that called VIPS_INIT + - add more webp tests to py suite - try moving some more of the CLI tests to py