Update performance.md

This commit is contained in:
Daniel Lemire 2020-07-03 23:14:01 -04:00 committed by GitHub
parent bd780817f7
commit 8b7df0c12e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -156,8 +156,12 @@ On Intel and AMD Windows platforms, Microsoft Visual Studio enables programmers
We do not recommend that you compile simdjson with architecture-specific flags such as `arch:AVX2`. The simdjson library automatically selects the best execution kernel at runtime.
When compiling with Visual Studio, we recommend the flags `/Ob2 /O2`. Weaker optimizations flags (e.g., `/Ox` alone) are inadequate.
Recent versions of Microsoft Visual Studio on Windows provides support for the LLVM Clang compiler. You only need to install the "Clang compiler" optional component. You may also get a copy of the 64-bit LLVM CLang compiler for [Windows directly from LLVM](https://releases.llvm.org/download.html). The simdjson library fully supports the LLVM Clang compiler under Windows. In fact, you may get better performance out of simdjson with the LLVM Clang compiler than with the regular Visual Studio compiler.
In our experience, you will get much better performance compiling with GNU GCC under Windows via MSYS2. If that is a possibility, you should consider it.
Downclocking
--------------