From d50021d045df809aa8e6debf1a7e5727dabcd95c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 6 May 2013 19:31:40 +0900 Subject: [PATCH] Use trunc as default value for --file-allocation on Android build --- src/OptionHandlerFactory.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index d0740fd6..352407cb 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -376,7 +376,12 @@ 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'));