aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-10-12 17:06:48 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-10-12 22:01:00 +0000
commit88fa7476ab923923022bcf75b72d94adf8a3b5bc (patch)
tree1373b9fc32a8c03da118d10d99e5df63de5c9dfd
parentcc300a15d49f6c62c32935b40f5b86d681aff845 (diff)
Disable MSVC optimization of sk_tool_utils::make_big_path().
This one function takes MSVC about 2 minutes to compile with optimization turned on, and roughly doubles my clean build wall time on a Z840 (186s before this change -> 95s after). It's test-only, so who really cares how fast it is? BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3254 Change-Id: I1318024caee281f3f8d44c05258b2bd4bd4eb695 Reviewed-on: https://skia-review.googlesource.com/3254 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
-rw-r--r--tools/sk_tool_utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp
index c84d452b92..49afd543b8 100644
--- a/tools/sk_tool_utils.cpp
+++ b/tools/sk_tool_utils.cpp
@@ -365,6 +365,11 @@ void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst) {
}
}
+#if defined(_MSC_VER)
+ // MSVC takes ~2 minutes to compile this function with optimization.
+ // We don't really care to wait that long for this function.
+ #pragma optimize("", off)
+#endif
void make_big_path(SkPath& path) {
#include "BigPathBench.inc"
}