tracks lexicons and how many times they appeared on the jetstream
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(server): use snmalloc

dusk 3456ca30 5e769184

+30 -28
+28 -21
server/Cargo.lock
··· 323 323 checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" 324 324 325 325 [[package]] 326 + name = "cmake" 327 + version = "0.1.54" 328 + source = "registry+https://github.com/rust-lang/crates.io-index" 329 + checksum = "e7caa3f9de89ddbe2c607f4101924c5abec803763ae9534e4f4d7d8f84aa81f0" 330 + dependencies = [ 331 + "cc", 332 + ] 333 + 334 + [[package]] 326 335 name = "combine" 327 336 version = "4.6.7" 328 337 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1494 1503 "serde", 1495 1504 "serde_json", 1496 1505 "smol_str", 1506 + "snmalloc-rs", 1497 1507 "threadpool", 1498 - "tikv-jemallocator", 1499 1508 "tokio", 1500 1509 "tokio-util", 1501 1510 "tokio-websockets", ··· 1565 1574 dependencies = [ 1566 1575 "borsh", 1567 1576 "serde", 1577 + ] 1578 + 1579 + [[package]] 1580 + name = "snmalloc-rs" 1581 + version = "0.3.8" 1582 + source = "registry+https://github.com/rust-lang/crates.io-index" 1583 + checksum = "eb317153089fdfa4d8a2eec059d40a5a23c3bde43995ea23b19121c3f621e74a" 1584 + dependencies = [ 1585 + "snmalloc-sys", 1586 + ] 1587 + 1588 + [[package]] 1589 + name = "snmalloc-sys" 1590 + version = "0.3.8" 1591 + source = "registry+https://github.com/rust-lang/crates.io-index" 1592 + checksum = "065fea53d32bb77bc36cca466cb191f2e5216ebfd0ed360b1d64889ee6e559ea" 1593 + dependencies = [ 1594 + "cmake", 1568 1595 ] 1569 1596 1570 1597 [[package]] ··· 1655 1682 checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa" 1656 1683 dependencies = [ 1657 1684 "num_cpus", 1658 - ] 1659 - 1660 - [[package]] 1661 - name = "tikv-jemalloc-sys" 1662 - version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7" 1663 - source = "registry+https://github.com/rust-lang/crates.io-index" 1664 - checksum = "cd3c60906412afa9c2b5b5a48ca6a5abe5736aec9eb48ad05037a677e52e4e2d" 1665 - dependencies = [ 1666 - "cc", 1667 - "libc", 1668 - ] 1669 - 1670 - [[package]] 1671 - name = "tikv-jemallocator" 1672 - version = "0.6.0" 1673 - source = "registry+https://github.com/rust-lang/crates.io-index" 1674 - checksum = "4cec5ff18518d81584f477e9bfdf957f5bb0979b0bac3af4ca30b5b3ae2d2865" 1675 - dependencies = [ 1676 - "libc", 1677 - "tikv-jemalloc-sys", 1678 1685 ] 1679 1686 1680 1687 [[package]]
+1 -3
server/Cargo.toml
··· 26 26 atomic-time = "0.1.5" 27 27 ordered-varint = "2.0.0" 28 28 threadpool = "1.8.1" 29 - 30 - [target.'cfg(not(target_env = "msvc"))'.dependencies] 31 - tikv-jemallocator = "0.6" 29 + snmalloc-rs = "0.3.8"
+1 -4
server/src/main.rs
··· 1 1 use std::{ops::Deref, sync::Arc}; 2 2 3 3 use smol_str::ToSmolStr; 4 - #[cfg(not(target_env = "msvc"))] 5 - use tikv_jemallocator::Jemalloc; 6 4 use tokio_util::sync::CancellationToken; 7 5 use tracing::Level; 8 6 use tracing_subscriber::EnvFilter; ··· 20 18 mod jetstream; 21 19 mod utils; 22 20 23 - #[cfg(not(target_env = "msvc"))] 24 21 #[global_allocator] 25 - static GLOBAL: Jemalloc = Jemalloc; 22 + static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc; 26 23 27 24 #[tokio::main] 28 25 async fn main() {