mwunsch / tumblr

Command line interface and Ruby client for the Tumblr API (v2)
MIT License
282 stars 43 forks source link

Fixed using too much memory #24

Closed kazupon closed 11 years ago

kazupon commented 11 years ago

Hi.

Thanks for the gem.

I found the problem. It is using too much memory, when post the type of text with the tumbr-rb gem, the gist of the following link.

https://gist.github.com/4362220/1ab009452fd525cd9da36258fe23b1552afadc11

I made ​​a patch.

Please check this problem & my patch!

mwunsch commented 11 years ago

Thanks for the patch. I think rather than this approach, which only does this if meta_data["type"] == "text", we might have better luck if we check the post_body_keys.length and only do the duping and pairing if it's > 1.

Let me see if I can come up with a patch.