lib/care.rb in format_parser-0.5.0 vs lib/care.rb in format_parser-0.5.1
- old
+ new
@@ -2,10 +2,10 @@
# possibly remote IO to parsers that tend to read (and skip)
# in very small increments. This way, with a remote source that
# is only available via HTTP, for example, we can have less
# fetches and have them return more data for one fetch
class Care
- DEFAULT_PAGE_SIZE = 16 * 1024
+ DEFAULT_PAGE_SIZE = 64 * 1024
class IOWrapper
def initialize(io, cache = Cache.new(DEFAULT_PAGE_SIZE))
@io = io
@cache = cache