Re: Benchmarked tcpserver dlopen() -> qmail_smtpd() VS tcpserver --> fork() --> exec qmail-smtpd
"Malte Tancred" <[email protected]> 4 Apr 2017 16:50:12 +0200
| Newsgroups | gmane.mail.qmail.general |
|---|---|
| Message-ID | <[email protected]> |
On 4 Apr 2017, at 16:11, Manvendra Bhangui wrote: > On 2 April 2017 at 20:47, Charles Cazabon > <[email protected]> wrote: ... >> As djb himself says, measure, don't speculate. > So finally I measured and now I have data, and it so consistent, that > I too am surprised. Using dlopen() to load the control files in > tcpserver gives a huge, huge gain if the control files are large. Nice work. Just a thought though. It seems to me that control files weren't designed to handle huge lists of this sort and that a better approach would be to move to a more efficient file format or database, say, cdb, sqlite, LMDB or postgresql. Regards, Malte