From: Christian Couder Date: Thu, 30 Jun 2016 09:49:21 GMT Subject: Re: [RFC/PATCH v2 00/10] Add initial experimental external ODB support Message-ID: In-Reply-To: <20160629200142.GA17878@dcvr.yhbt.net> On Wed, Jun 29, 2016 at 10:01 PM, Eric Wong wrote: > Christian Couder wrote: >> Design discussion about performance >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> Yeah, it is not efficient to fork/exec a command to just read or write >> one object to or from the external ODB. Batch calls and/or using a >> daemon and/or RPC should be used instead to be able to store regular >> objects in an external ODB. But for now the external ODB would be all >> about really big files, where the cost of a fork+exec should not >> matter much. If we later want to extend usage of external ODBs, yeah >> we will probably need to design other mechanisms. > > I would also investigate switching run_command to use vfork+exec > or posix_spawn for performance (keeping in mind vfork > caveats documented at https://ewontfix.com/7/ ) Thanks Eric for this idea and the test!