Update performance.md

This commit is contained in:
Daniel Lemire 2020-07-09 11:45:47 -04:00 committed by GitHub
parent 697bafdd0a
commit fd836145fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -156,11 +156,9 @@ On Intel and AMD Windows platforms, Microsoft Visual Studio enables programmers
When compiling with Visual Studio, we recommend the flags `/Ob2 /O2` or better. 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.
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 (ClangCL). 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. And [the Clang compiler is binary compatible with Visual Studio](Meanwhile [clangcl is binary compatible with visual studio](https://clang.llvm.org/docs/MSVCCompatibility.html) which means that you can mix them.
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 (ClangCL). 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.
Under Windows, you may get better performance compiling with GNU GCC via MSYS2 or with ClangCL/Visual Studio than by using the regular Visual Studio compiler. Visual Studio lacks some specific features that both GNU GCC and LLVM clang support: e.g., computed gotos, likely/unlikely branch hints, architecture-specific function attributes. We encourage you to experiment and compare the results.
Under Windows, we also support the GNU GCC compiler via MSYS2. The performance is excellent.
Downclocking