Subject: Re: RE : About allocation/desallocation

Re: RE : About allocation/desallocation

From: Peter Stuge <peter_at_stuge.se>
Date: Sun, 29 Mar 2009 14:22:56 +0200

Daniel Stenberg wrote:
> Assuming that the names always have a rather short length, like
> less than 128 bytes or so, I figure allocating it as part of the
> main struct or something would be better.

Why alloc that in the first place? The strings will be included in
the binary anyway.. Make them rodata.

//Peter

------------------------------------------------------------------------------
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-03-29