From: Robert Klemme Date: 2013-04-08T21:28:57+09:00 Subject: Re: Mapping string data ptr to buffer in ffi --20cf3074d3208bc8df04d9d8940c Content-Type: text/plain; charset=ISO-8859-1 On Mon, Apr 8, 2013 at 2:09 PM, se gm wrote: > >The solution you are hooked into does not sound viable yet you want to > >do > >it that way. > It is the only way to solve the bottleneck problem. There is simply no > other acceptable solution and I would go for it regardless of any > issues. Do you know how to pass the pointer reliably or not ? > You need to properly synchronize accesses from both sides. Without knowing the usage patterns I don't think it's possible to come up with a proper solution. After all what's it worth to fix a bottleneck when the logic is broken in the process? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --20cf3074d3208bc8df04d9d8940c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Mon, Apr 8, 2013 at 2:09 PM, se gm <lists@ruby-forum.com= > wrote:
>The solution you are h= ooked into does not sound viable yet you want to
>do
>it that way.
It is the only way to solve the bottleneck problem. There is simply n= o
other acceptable solution and I would go for it regardless of any
issues. Do you know how to pass the pointer reliably or not ?=A0

You need to properly synchronize accesses from both sides. = =A0Without knowing the usage patterns I don't think it's possible t= o come up with a proper solution. =A0After all what's it worth to fix a= bottleneck when the logic is broken in the process?

Cheers

robert

--
remember.guy do |as, often| as.you_can = - without end
http://blog.rubybestpractice= s.com/
--20cf3074d3208bc8df04d9d8940c--