Re: [PATCH 1/3] Added generic string handling code.
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- May 20, 2007, 10:01 UTC
- Message-ID
- <20070520100155.GB3106@steel.home>
- In-Reply-To
- <1179627869.32181.1284.camel@hurina>
Timo Sirainen, Sun, May 20, 2007 04:24:29 +0200:
> So here's my try on starting with something simple. Unlike almost all > other string handling libraries, it doesn't allocate the memory > dynamically.
Sometimes you _need_ dinamic memory allocation.
> This makes it really easy to convert existing code to use it. I'm > including some example changes in the other patches. Besides making > the code safer, it can also make it faster, especially those > strcat() replacements.
It is also bigger, heavier on stack and sometimes slower because of more function calls involved.
Aside from that, I like it. I wouldn't use it universally, but there were times when I wished it has been be done this way.