Hi,
In message "[ruby-talk:29519] Re: C extensions: ruby and C strings"
on 01/12/28, Tomasz Wegrzanowski <taw / users.sf.net> writes:
|Is there any method for creating Ruby string from C string without
|allocating and copying ? In case when cstr is big (more than a few kilobytes),
|it might be major performance gain.
No (not yet). I allocate string first instead of malloc, then use its
buffer as a c string. It is sufficient for most of the cases. But
your proposal is reasonable. I will consider it.
matz.