From 478ebd190cf0f69a02dc5212389a8cebb43d7f76 Mon Sep 17 00:00:00 2001 From: Daniel Heule Date: Fri, 14 Feb 2014 22:06:43 +0100 Subject: [PATCH] transfert idea into the file in git tree, so we can close issue 286 --- docs/dev/fancy-ideas | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/dev/fancy-ideas b/docs/dev/fancy-ideas index f125a884..8ee290cd 100644 --- a/docs/dev/fancy-ideas +++ b/docs/dev/fancy-ideas @@ -4,4 +4,14 @@ implemented as a proof of concept at: https://github.com/asteven/cdist/tree/type-namespaces + + +Execute all global explorers only when needed #286 +My intention is to create a brunch of global explorer which are of use in some cases and makes cdist more userfriendly. But now, all global explorers are allways executed, even the return value of the explorers is never used. + +I think a possible approach can be to replace the result files with pipes, and on first read of the pipe, the explorer is executed by the core, all following read calls from the pipe are answered from the core with the result of the first real execute of the explorer. + +So cdist can have an unlimited number of global explorers and only used explorers are executed on the target host, all other explorers laying around are simply ignored. + +Also a possible approach would be to create a new explorer type (dynamic explorers) which are sitting in a different directory to (for example dynexploer) and only this ones are executed with the conditional approach explained above. So the overhead to create pipes and monitor it is only in place on explorers which are not interesting for everyone ...