Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Is it possible to access memory as a block ?

Reply
Thread Tools

Is it possible to access memory as a block ?

 
 
Pinit Asavanuchit
Guest
Posts: n/a
 
      08-08-2010
I have a situation to load large amount of data multi-million of data to
memory for processing.
It's memory intensive application. Analysis.

I have found that Hash is too slow, then I try Array but it's overhead
of 20 or 40 byte make me run out of memory.

I try to find how to define a pointer to block of memory or create array
which less overhead.

Is that possible in ruby ?
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Joel VanderWerf
Guest
Posts: n/a
 
      08-08-2010
Pinit Asavanuchit wrote:
> I have a situation to load large amount of data multi-million of data to
> memory for processing.
> It's memory intensive application. Analysis.
>
> I have found that Hash is too slow, then I try Array but it's overhead
> of 20 or 40 byte make me run out of memory.
>
> I try to find how to define a pointer to block of memory or create array
> which less overhead.
>
> Is that possible in ruby ?


What kind of data is it?

Check out mmap:
http://rubyforge.org/projects/mmap/

Also the narray gem and A. Howard's combination of the two:
http://blade.nagaokaut.ac.jp/cgi-bin...by-talk/162769


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fo:Block can you check to see if a block contains any text by using the block id? morrell XML 1 10-10-2006 07:18 PM
access to preallocated block of memory? Greg Copeland Python 14 12-16-2005 06:53 PM
Data Access Aplication Block and Access database Fernando Lopes ASP .Net 0 03-29-2005 09:32 PM
is it possible to block access to system.management.interface in shared hosting? Jess ASP .Net Security 0 03-02-2004 03:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57