Skip to content

Commit

Permalink
perf(cpu): add bucket backend string interning
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Sep 19, 2024
1 parent 703ab86 commit 5be7b8c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_examples"
version = "2.5.2"
version = "2.5.3"
authors = [
"j-mendez <jeff@spider.cloud>",
]
Expand Down
4 changes: 2 additions & 2 deletions spider/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider"
version = "2.5.2"
version = "2.5.3"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down Expand Up @@ -153,7 +153,7 @@ reqwest_history_dns = ["reqwest/hickory-dns"]
reqwest_multipart = ["reqwest/multipart"]
tokio_io_std = ["tokio/io-std"]

# Allows full concurrency
# Allows full concurrency.
cowboy = []

# Enables usage of `#[inline]` on far more functions than by default in this
Expand Down
4 changes: 2 additions & 2 deletions spider/src/utils/interner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::CaseInsensitiveString;
use hashbrown::HashSet;
use std::hash::Hash;
use std::marker::PhantomData;
use string_interner::backend::BufferBackend;
use string_interner::backend::BucketBackend;
use string_interner::symbol::SymbolUsize;
use string_interner::StringInterner;

Expand All @@ -15,7 +15,7 @@ where
/// The links visited.
pub(crate) links_visited: HashSet<SymbolUsize>,
/// The string interner.
pub(crate) interner: StringInterner<BufferBackend<SymbolUsize>>,
pub(crate) interner: StringInterner<BucketBackend<SymbolUsize>>,
/// Phantom data to link the generic type.
_marker: PhantomData<K>,
}
Expand Down
2 changes: 1 addition & 1 deletion spider_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_cli"
version = "2.5.2"
version = "2.5.3"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_utils"
version = "2.5.2"
version = "2.5.3"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_worker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_worker"
version = "2.5.2"
version = "2.5.3"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down

0 comments on commit 5be7b8c

Please sign in to comment.