Alternative to open-uri?

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!

What are you planning to do with the file? Store it to disk
slice-by-slice
as you receive it from the network?

In article [email protected],
“CBlair1986” [email protected] writes:

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs