From: Robert Klemme Date: 2013-04-08T20:08:37+09:00 Subject: Re: Mapping string data ptr to buffer in ffi --047d7b5d5a3841713404d9d775e4 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Apr 8, 2013 at 1:02 PM, Robert Klemme wrote: > > > > On Mon, Apr 8, 2013 at 11:49 AM, se gm wrote: > >> >You need a method call, either from >> >Ruby side >> I need only one blocking syncronization call from Ruby to start working >> with the string. Getters method calls which would copy 512m string are >> not a viable option. So no other option except the one I was asking >> about. >> > > Well, you do not necessarily need to copy complete files. > > >> >Btw, what are you trying to create here? >> File parsing and searching over a huge volume of data. >> > > Please disclose more detail about the way the parsing and processing of > parse results is supposed to work. With that information we will be better > able to find a proper solution. I think you need to step back and look at > this from a bit more distance. The solution you are hooked into does not > sound viable yet you wa > > sorry, key press error. The solution you are hooked into does not sound viable yet you want to do it that way. I'd say it's unlikely that you will come to a satisfactory solution doing it that way. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --047d7b5d5a3841713404d9d775e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Mon, Apr 8, 2013 at 1:02 PM, Robert Klemme <= ;shortcutte= r@googlemail.com> wrote:



On Mon, Apr 8, 2013 at 11:49 AM, se gm = <lists@ruby-fo= rum.com> wrote:
>You need a method call, e= ither from
>Ruby side
I need only one blocking syncronization call from Ruby to start worki= ng
with the string. Getters method calls which would copy 512m string are
not a viable option. So no other option except the one I was asking
about.

Well, yo= u do not necessarily need to copy complete files.
=A0
=
>Btw, what are you trying to create here?
File parsing and searching over a huge volume of da= ta.=A0

Please disclose mo= re detail about the way the parsing and processing of parse results is supp= osed to work. =A0With that information we will be better able to find a pro= per solution. =A0I think you need to step back and look at this from a bit = more distance. =A0The solution you are hooked into does not sound viable ye= t you wa

sorry, key press error.

The solution you are hooked into does no= t sound viable yet you want to do it that way. =A0I'd say it's unli= kely that you will come to a satisfactory solution doing it that way.

<= span style=3D"color:rgb(80,0,80)">Cheers

robert


--
remember.guy do |as, often| a= s.you_can - without end
h= ttp://blog.rubybestpractices.com/
--047d7b5d5a3841713404d9d775e4--