Skip to content

Commit e59c111

Browse files
committed
urlcache: Increase readahead and cache
This may speed things up for some people. Signed-off-by: Hector Martin <[email protected]>
1 parent fb4a0f4 commit e59c111

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/urlcache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class CacheBlock:
1111
data: bytes
1212

1313
class URLCache:
14-
CACHESIZE = 32
14+
CACHESIZE = 64
1515
BLOCKSIZE = 1 * 1024 * 1024
16-
READAHEAD = 10
16+
READAHEAD = 20
1717
TIMEOUT = 30
1818

1919
def __init__(self, url):

0 commit comments

Comments
 (0)