Skip to content

Instantly share code, notes, and snippets.

View dist1ll's full-sized avatar

Adrian Alic dist1ll

View GitHub Profile
@dist1ll
dist1ll / console-dump.txt
Created May 26, 2023 20:44
Rust compiler timings for regex crate
time: 0.000; rss: 33MB -> 33MB ( +0MB) parse_crate
time: 0.000; rss: 34MB -> 34MB ( +0MB) plugin_loading
time: 0.000; rss: 34MB -> 35MB ( +1MB) setup_global_ctxt
time: 0.000; rss: 36MB -> 36MB ( +0MB) crate_injection
time: 0.026; rss: 36MB -> 64MB ( +27MB) expand_crate
time: 0.026; rss: 36MB -> 64MB ( +28MB) macro_expand_crate
time: 0.001; rss: 64MB -> 64MB ( +0MB) AST_validation
time: 0.000; rss: 64MB -> 64MB ( +0MB) finalize_imports
time: 0.000; rss: 64MB -> 64MB ( +0MB) compute_effective_visibilities
time: 0.000; rss: 64MB -> 64MB ( +0MB) finalize_macro_resolutions
@dist1ll
dist1ll / main.rs
Created May 15, 2023 20:27
ASCII Counter
use std::{
fs::{read_dir, DirEntry},
path::Path,
};
const DIRECTORY: &'static str = "<ENTER YOUR TARGET PATH>";
const FILE_EXT: &'static str = ".rs";
fn main() {
let mut source_files = vec![];