diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-02-07 17:35:17 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-02-07 17:35:17 +0300 |
commit | f2df4e0076a29a32813f870741b0f89fcbf00eed (patch) | |
tree | 4179b32d3ccdfb41ce25087319d63e7772313396 /source/blender/blenkernel/BKE_main_idmap.h | |
parent | 08a4cb0727d2a176fd541676bf0cabcb6d9541d9 (diff) |
Build optimization: Compile glew for size rather than speed with msvc.
Glew.obj is one of the more expensive targets we have to build clocking in
at 34.907 seconds.
The root cause [1] is the msvc inliner is not super thrilled with the
glewIsSupported supported function, this patch changes the buildflags
of extern_glew to optimize for size rather than speed.
Given glew is only in play at initalization time there will be no
performance impact.
Time to build glew.obj
Before: 34.907s
After : 1.961s
[1] https://developercommunity.visualstudio.com/content/problem/732941/slow-compilation-of-glewc-for-visual-studio-2019-x.html
Differential Revision: https://developer.blender.org/D6656
Reviewers: brecht, sergey, fclem
Diffstat (limited to 'source/blender/blenkernel/BKE_main_idmap.h')
0 files changed, 0 insertions, 0 deletions