-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (53 loc) · 1.29 KB
/
Cargo.toml
File metadata and controls
62 lines (53 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[workspace]
resolver = "2"
members = ["rust"]
exclude = ["rust/fuzz"]
[workspace.dependencies]
pyo3 = { version = "0.25", features = ["extension-module"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bincode = "1.3"
numpy = "0.25"
# Performance dependencies
rayon = "1.8"
simd-json = "0.13"
lz4 = "1.24"
memmap2 = "0.9"
[workspace.metadata.maturin]
python-source = "src"
# Aggressive optimization for release builds
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
# Build-time environment optimization
[profile.release.build-override]
opt-level = 3
codegen-units = 1
# Optimize for size in development
[profile.dev]
opt-level = 1
# Enable debug info for profiling - ENHANCED
[profile.bench]
opt-level = 3
debug = true
lto = "fat"
# Profile-Guided Optimization - Generate profile data
[profile.release-pgo-generate]
inherits = "release"
# PGO instrumentation adds overhead, disable some optimizations
lto = false
# Keep debug info for profiling
debug = true
# Profile-Guided Optimization - Use profile data
[profile.release-pgo-use]
inherits = "release"
# Full LTO with profile data for maximum optimization
lto = "fat"
# Strip symbols for smaller binary
strip = true
# Maximum optimization with profile data
opt-level = 3
codegen-units = 1