-
assigned issue to
Reduce memory churn
Issue #84
resolved
Right now, new buffers are allocated at almost any occasions! From buffers holding modules data to buffers holding command strings or cached lists... These many buffers create a lot of "holes" in memory... Reuse is in order!
Comments (4)
-
reporter -
reporter In particular, rethink and make consistency the various sizes of the various buffers and how they grow. For example, in
http.c
andhttps.c
, there's theTEMPORARY_BUFFER_LENGTH
and a growth factor of3 x TEMPORARY_BUFFER_LENGTH
while inftp.c
, the sameTEMPORARY_BUFFER_LENGTH
isUSHRT_MAX / 4
, etc. -
reporter - changed status to resolved
Introduced a new header file,
constants.h
, to store common constants and used them systematically across all C files. -
reporter Fixed
#84and#126and cleaned up the code to simplify and strengthen it.→ <<cset d02626c92c47>>
- Log in to comment