Re: Daemonizing CRM114 using FIFO
"Ger Hobbelt" <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
Ah, I forgot: given how CRM114 works internally, and assuming your messages are relatively large, i.e. bigger than a hundred bytes on average, I'd go with the length+content solution, because that would prevent CRM114 from having to perform an unknown number of 'unescape' operations on your message content. Since CRM114 only starts to act on the input once it is closed (i.e. when CRM114 receives an End Of File signal), the fastest possible operation would be that, combined with the use of 'batches', i.e. merging multiple messages in a single open+write+close FIFO session, while staying within the maximum data buffer size limits of CRM114 itself (which are > 1MB by default IIRC). That would mean your result.txt will end up containing the answers for all the messages in such a 'batch', though a bit of encoding/decoding may be required on that side as well. -- Met vriendelijke groeten / Best regards, Ger Hobbelt -------------------------------------------------- web: http://www.hobbelt.com/ http://www.hebbut.net/ mail: [email protected] mobile: +31-6-11 120 978 -------------------------------------------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/