Daniel Lemire
Daniel Lemire
Note that we want to support Windows/Visual Studio.
@NicolasJiaxin The patch can be improved as follows... ```diff --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -3,9 +3,9 @@ cmake_minimum_required(VERSION 3.15) add_executable(sutf sutf.cpp) target_link_libraries(sutf PUBLIC simdutf) -if(NOT(MSVC)) +if(NOT(MSVC) AND NOT(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"))...
I turned this issue in a blog post... “Hello world” is slower in C++ than in C (Linux) https://lemire.me/blog/2022/08/09/hello-world-is-slower-in-c-than-in-c-linux/ Because of how our API is designed, we could call the...
Related https://github.com/simdutf/simdutf/issues/158 and https://github.com/simdutf/simdutf/issues/162
I have now grown convinced that rewriting the code using the C API (i.e., avoid iostream) will make the problem go away. It is fine to compile using C++ and...
@clausecker Great. To clarify, I am not suggesting you do all of the work. Just provide an example of what you'd do so that @NicolasJiaxin has a starting point. I...
I'll see about hacking something so that the C++ code is less terrible. @NicolasJiaxin is relying on input streams which is not the best choice for performance.
The general lesson is that for performance, never use C++ streams.
@NicolasJiaxin Do you recommend merging into avx512feature ?
Let us merge and improve later if needed.