Skip to content

Commit 97885d7

Browse files
committed
perf: remove unused tiktoken-rs and chromiumoxide dependencies
Remove heavy dependencies that were declared but never used in code: - tiktoken-rs: not imported or used anywhere (tokenizer.rs uses simple estimation) - chromiumoxide: not imported or used anywhere These dependencies were adding significant startup time overhead (~1-3 seconds combined) without providing any functionality. Fixes CLI startup performance issues documented in CLI_PERFORMANCE_ANALYSIS.md
1 parent 30beef7 commit 97885d7

File tree

3 files changed

+2
-153
lines changed

3 files changed

+2
-153
lines changed

Cargo.lock

Lines changed: 2 additions & 146 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ bitflags = "2.6"
359359
slotmap = "1.0"
360360
parking_lot = "0.12"
361361
flume = "0.11"
362-
tiktoken-rs = "0.6"
363362
secrecy = { version = "0.10", features = ["serde"] }
364363
zeroize = { version = "1.8", features = ["derive"] }
365364
glob = "0.3"

cortex-engine/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,11 @@ aes-gcm = "0.10"
103103
argon2 = "0.5"
104104
zeroize = { version = "1.8", features = ["derive"] }
105105

106-
# Tiktoken for token counting
107-
tiktoken-rs = "0.6"
108-
109106
# mDNS / Service Discovery
110107
mdns-sd = { workspace = true }
111108
hostname = { workspace = true }
112109
flume = "0.11"
113110

114-
# Headless Browser
115-
chromiumoxide = { version = "0.7", default-features = false, features = ["tokio-runtime"] }
116-
117111
# Platform specific
118112
[target.'cfg(target_os = "linux")'.dependencies]
119113
landlock = { workspace = true }

0 commit comments

Comments
 (0)