mirror of https://github.com/aria2/aria2
Revert d50021d045
It is safe to use prealloc for default, because of legacy fs (e.g., vfat) usage in Android.pull/89/head
parent
c056f747c6
commit
1b6827b060
|
@ -376,12 +376,7 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
|
|||
OptionHandler* op(new ParameterOptionHandler
|
||||
(PREF_FILE_ALLOCATION,
|
||||
TEXT_FILE_ALLOCATION,
|
||||
#if defined(__ANDROID__) || defined(ANDROID)
|
||||
// V_PREALLOC is too slow for Android device
|
||||
V_TRUNC,
|
||||
#else // !(defined(__ANDROID__) || defined(ANDROID))
|
||||
V_PREALLOC,
|
||||
#endif // !(defined(__ANDROID__) || defined(ANDROID))
|
||||
std::vector<std::string>
|
||||
(vbegin(params), vend(params)),
|
||||
'a'));
|
||||
|
|
Loading…
Reference in New Issue