From 1b6827b060d1c2175cb82234de3c7ef4d037f07e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 10 May 2013 21:14:03 +0900 Subject: [PATCH] Revert d50021d045df809aa8e6debf1a7e5727dabcd95c It is safe to use prealloc for default, because of legacy fs (e.g., vfat) usage in Android. --- src/OptionHandlerFactory.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 352407cb..d0740fd6 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -376,12 +376,7 @@ std::vector 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 (vbegin(params), vend(params)), 'a'));