summaryrefslogtreecommitdiff
path: root/src/WrDiskCacheEntry.cc
Commit message (Collapse)AuthorAgeFilesLines
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-23/+24
|
* Improve write cache failures error reportingNils Maier2014-05-201-1/+1
|
* More auto-converts by cpp11-migrateNils Maier2013-09-201-5/+4
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-2/+2
|
* Removed unused variablesTatsuhiro Tsujikawa2012-12-171-1/+0
|
* 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/+21
| | | | | | 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.
* Write data in 4K aligned offset in write with disk cache enabledTatsuhiro Tsujikawa2012-12-061-8/+2
| | | | | This greatly reduces disk activity especially on Win + NTFS. Not so much difference on Linux.
* Added --disk-cache optionTatsuhiro Tsujikawa2012-12-031-0/+110
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.