Efficient message processing for Ruby