Skip to content

Commit

Permalink
improvement: optimize build
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Aug 29, 2022
1 parent 5743b2e commit 8a9edb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ nu-pretty-hex = "0.67"


[profile.release]
opt-level = 'z'
opt-level = 3
lto = true
strip = true
codegen-units = 1
Expand Down
4 changes: 2 additions & 2 deletions src/config/dns_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ impl DnsTable {
let pool_size = hosts.count();

Self {
domain: LruCache::new(pool_size),
addr: LruCache::new(pool_size),
domain: LruCache::new(10000),
addr: LruCache::new(10000),
network,
pool_size,
offset: 0,
Expand Down

0 comments on commit 8a9edb4

Please sign in to comment.