summaryrefslogtreecommitdiff
path: root/test/WrDiskCacheEntryTest.cc
Commit message (Collapse)AuthorAgeFilesLines
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-5/+5
|
* AbstractSingleDiskAdaptor: Use std::unique_ptr for diskWriter_Tatsuhiro Tsujikawa2013-07-061-5/+6
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-2/+2
|
* Fixed bug that size_ is not updated when WrDiskCacheEntry::append is calledTatsuhiro Tsujikawa2012-12-061-0/+1
|
* Append new data to the contagious cache dataTatsuhiro Tsujikawa2012-12-061-0/+23
| | | | | | If we receive small data (e.g., 1 or 2 bytes), cache entry becomes a headache. To mitigate this problem, we allocate cache buffer at least 4KiB and append the data to the contagious cache data.
* Added --disk-cache optionTatsuhiro Tsujikawa2012-12-031-0/+55
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.