what is the maximum size of elements can a ruby array hold and
'process'
comfortably for a 1GB RAM machine?
The 1GB real memory constraint doesn't really help in answering the
question. The virtual memory size of a process can be much larger than
the physical memory size of a machine. The manner in which you
process the data in a large array will greatly affect the performance
because of the way your algorithm will interact with memory caches and
virtual memory paging. The amount of memory actually available to
your process is going to depend on what other processes are running on
the machine and so on.
Without sharing much more about your particular problem set I'm afraid
the answer to your question is going to be 'It depends'. The best way
to improve on that answer is to experiment with the system in question.
Gary Wright