diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-11-27 22:04:59 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-12-03 01:39:10 +0900 |
| commit | f314719618d181036ceebcf45338ab76559daf55 (patch) | |
| tree | f85677a7afad929a7cf320ff93ec4265cda0dc6a /src/DownloadEngineFactory.cc | |
| parent | 8ac433a8e9ab8bddd96c62db4bbeac3adce2b3ba (diff) | |
Added --disk-cache option
This option enables disk cache. If SIZE is 0, the disk cache is
disabled. This feature caches the downloaded data in memory, which
grows to at most SIZE bytes. The cache storage is created for aria2
instance and shared by all downloads. The one advantage of the disk
cache is reduce the disk seek time because the data is written in
larger unit and it is reordered by the offset of the file. If the
underlying file is heavily fragmented it is not the case.
Diffstat (limited to 'src/DownloadEngineFactory.cc')
| -rw-r--r-- | src/DownloadEngineFactory.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DownloadEngineFactory.cc b/src/DownloadEngineFactory.cc index 0aba1494..ee328c5e 100644 --- a/src/DownloadEngineFactory.cc +++ b/src/DownloadEngineFactory.cc @@ -137,6 +137,7 @@ DownloadEngineFactory::newDownloadEngine SharedHandle<RequestGroupMan> requestGroupMan(new RequestGroupMan(requestGroups, MAX_CONCURRENT_DOWNLOADS, op)); + requestGroupMan->initWrDiskCache(); e->setRequestGroupMan(requestGroupMan); e->setFileAllocationMan (SharedHandle<FileAllocationMan>(new FileAllocationMan())); |
