From: se gm Date: 2013-04-08T19:14:28+09:00 Subject: Re: Mapping string data ptr to buffer in ffi >I believe it would be a huge work. I used shared memory in the past >from C, but when the Ruby part needed to access the data, I created a >String object (with rb_str_new). By doing that, the performance of the code drops more than 2x times (compared with the test results of the code which finds the ptrs before processing by performing a memory scan) - such a way is not a reliable one, but the drop in performance of some task which takes days to complete is not on option either. -- Posted via http://www.ruby-forum.com/.