- Updated `.cargo/config.toml` to optimize compilation flags for performance. - Enhanced `main.rs` by: - Renaming user and item ID columns for clarity. - Adding validation functions to ensure the existence of tables and columns in the database schema. - Implementing immediate exit handling during data loading. - Modifying the `save_embeddings` function to accept item IDs for processing. - Improving error handling with context messages for database operations. These changes improve code readability, robustness, and performance during data processing.
16 lines
312 B
TOML
16 lines
312 B
TOML
[target.x86_64-unknown-linux-gnu]
|
|
rustflags = [
|
|
"-C",
|
|
"link-arg=-fuse-ld=lld",
|
|
"-C",
|
|
"link-arg=-lgomp",
|
|
"-C",
|
|
"link-arg=-fopenmp",
|
|
]
|
|
|
|
[env]
|
|
CXXFLAGS = "-O3 -march=native -fopenmp -pthread -DUSEOMP=1"
|
|
LDFLAGS = "-O3 -march=native -fopenmp -pthread -DUSEOMP=1 -flto"
|
|
CC = "gcc"
|
|
CXX = "g++"
|