class File

  attr_reader :chunks

  def chunk
    @chunks = Array.new
    self.rewind
    while (content = self.read(512))
      @chunks << Tornado::Chunk.new(content)
    end
    @chunks
  end

  def id
    self.rewind
    Digest::SHA1.hexdigest self.read
  end

end
class File

  attr_reader :chunks

  def chunk
    @chunks = Array.new
    self.rewind
    while (content = self.read(102400))
      @chunks << Tornado::Chunk.new(content)
    end
    @chunks
  end

  def id
    self.rewind
    Digest::SHA1.hexdigest self.read
  end

end
Improve chunking a lot. Chunks of 100KB seems pretty reasonable.
Improve chunking a lot. Chunks of 100KB seems pretty reasonable.
