[dev] [sbase] Why do extra work when the kernel will do it more efficiently?

From: Truls Becken <truls.becken_AT_gmail.com>
Date: Tue, 16 Dec 2014 20:33:17 +0100

Hi everyone,

As the original contributor of sbase cut, I can't help wondering what the
purpose of the mem freeing added in the two commits from 1st of June is
supposed to be. The most efficient and reliable way to free allocated memory
is to terminate the process. There is no reason to clean things up just to
exit immediately after. Also, the line buffer was reused on purpose, no need
to allocate a new one per file.

Received on Tue Dec 16 2014 - 20:33:17 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 16 2014 - 20:36:07 CET