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 jemalloc on non-msvc targets

dusk 7488e63a fd6db39e

+30
+21
server/Cargo.lock
··· 2283 2283 "serde", 2284 2284 "serde_json", 2285 2285 "smol_str", 2286 + "tikv-jemallocator", 2286 2287 "tokio", 2287 2288 "tower-http", 2288 2289 "tracing", ··· 2529 2530 checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" 2530 2531 dependencies = [ 2531 2532 "cfg-if", 2533 + ] 2534 + 2535 + [[package]] 2536 + name = "tikv-jemalloc-sys" 2537 + version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7" 2538 + source = "registry+https://github.com/rust-lang/crates.io-index" 2539 + checksum = "cd3c60906412afa9c2b5b5a48ca6a5abe5736aec9eb48ad05037a677e52e4e2d" 2540 + dependencies = [ 2541 + "cc", 2542 + "libc", 2543 + ] 2544 + 2545 + [[package]] 2546 + name = "tikv-jemallocator" 2547 + version = "0.6.0" 2548 + source = "registry+https://github.com/rust-lang/crates.io-index" 2549 + checksum = "4cec5ff18518d81584f477e9bfdf957f5bb0979b0bac3af4ca30b5b3ae2d2865" 2550 + dependencies = [ 2551 + "libc", 2552 + "tikv-jemalloc-sys", 2532 2553 ] 2533 2554 2534 2555 [[package]]
+3
server/Cargo.toml
··· 18 18 papaya = "0.2" 19 19 serde = "1" 20 20 serde_json = "1.0.141" 21 + 22 + [target.'cfg(not(target_env = "msvc"))'.dependencies] 23 + tikv-jemallocator = "0.6"
+6
server/src/main.rs
··· 1 1 use std::sync::Arc; 2 2 3 3 use atproto_jetstream::{CancellationToken, Consumer, EventHandler, JetstreamEvent}; 4 + #[cfg(not(target_env = "msvc"))] 5 + use tikv_jemallocator::Jemalloc; 4 6 use tokio::sync::mpsc::{Receiver, Sender}; 5 7 6 8 use crate::{ ··· 11 13 mod api; 12 14 mod db; 13 15 mod error; 16 + 17 + #[cfg(not(target_env = "msvc"))] 18 + #[global_allocator] 19 + static GLOBAL: Jemalloc = Jemalloc; 14 20 15 21 const BSKY_ZSTD_DICT: &[u8] = include_bytes!("./bsky_zstd_dictionary"); 16 22