From: matz@... (Yukihiro Matsumoto) Date: 2001-12-28T17:28:38+09:00 Subject: [ruby-talk:29520] Re: C extensions: ruby and C strings Hi, In message "[ruby-talk:29519] Re: C extensions: ruby and C strings" on 01/12/28, Tomasz Wegrzanowski 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.