Alternative to open-uri?

C

CBlair1986

I'm using open-uri to open a very large web file. This is all fine and
dandy, I thought, until I saw how much memory it was using. I can deal
with a little bit of memory taken up, but memory up to the size of the
file is just too much.

Does anyone know any alternatives to open-uri, different methods I
could use, etc?

Thank you very much!
 
T

Tanaka Akira

CBlair1986 said:
I'm using open-uri to open a very large web file. This is all fine and
dandy, I thought, until I saw how much memory it was using. I can deal
with a little bit of memory taken up, but memory up to the size of the
file is just too much.

open-uri use Tempfile for large file. (> 10k)
So it shouldn't consume much memory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,209
Messages
2,571,085
Members
47,683
Latest member
AustinFairchild

Latest Threads

Top