Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-23 01:21:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-23 01:26:37 +0300
commit779860d34e26bedfb24904bc6261db5cbe9afdbf (patch)
treeb4dad0c592db953c811b032163b6edafa38d440a /source
parent655faca105863eafd1080d32a753e48dbe3b9164 (diff)
readfile: disable delayed data reading for WIN32
Seeking the file causes slow down on Windows. Resolves T61855
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/readfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index ec30ccd7517..ca36deeaa80 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -225,7 +225,9 @@
/**
* Delay reading blocks we might not use (especially applies to library linking).
* which keeps large arrays in memory from data-blocks we may not even use. */
-#define USE_BHEAD_READ_ON_DEMAND
+#if !defined(_WIN32) /* Slow on windows, see: T61855 */
+# define USE_BHEAD_READ_ON_DEMAND
+#endif
/* use GHash for BHead name-based lookups (speeds up linking) */
#define USE_GHASH_BHEAD