Manage New Post Logout Login

Christian von Kleist

Christian von Kleist on Posterous

Tag ruby

« Back to blog

Caching a slow block of Ruby code with almost no effort

This is a method I use when working with slow ruby scripts that operate on huge datasets.

It caches the return value of a block of extremely slow code in a file so that subsequent runs are fast.

It's indispensable to me when doing edit-debug-edit-debug-edit cycles on giant datasets.

Tags
  • ruby
  • programming
Upvote Upvoted 0
Tweet
Posted

Christian von Kleist

Browse the Archive »
Subscribe by email » We'll email you when there are new posts here.
You're following this blog. Unfollow »
Follow this Posthaven »
Enter your email address to get email alerts about new posts on this site. Unsubscribe anytime.
Email address is invalid.

Tags

  • linux 1
  • ssh 1
  • idiocy 1
  • protips 1
  • programming 1
  • Celebrities 1
  • linux ssh rsync 1
  • twitter 1
  • ruby 1