mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-05 21:22:39 +02:00
Turns AIO is just bad especially with buffered I/O, io_uring performs strictly better in this scenario.
11 lines
252 B
Bash
Executable File
11 lines
252 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
CXX=${CXX:-g++}
|
|
|
|
if ! which ${CXX} > /dev/null; then
|
|
echo "g++ not found, skipping compilation"
|
|
exit 0
|
|
fi
|
|
|
|
${CXX} -O3 -march=native -std=c++14 -fPIC -luring -shared -Isrc/main/public src/main/cpp/*.cpp -o resources/libcpp.so
|