oops, left in some debug stuff
All checks were successful
isspam build / build (push) Successful in 6m3s

This commit is contained in:
12bitfloat 2025-10-07 01:03:56 +02:00
parent c0b115d128
commit 3d28435e9b

View File

@ -80,8 +80,8 @@ extern "rust-cold" fn die() -> ! {
fn work(file_path: &OsStr, stats: &mut Stats) {
WORK_STATE.with_borrow_mut(|state: &mut WorkState| {
// Load file
let start_time = Instant::now();
// // Load file
// let start_time = Instant::now();
// let Ok(text) = fs::read(file_path) else {
// eprintln!("invalid file!");
@ -113,11 +113,11 @@ fn work(file_path: &OsStr, stats: &mut Stats) {
// let text = include_bytes!("../../../books/Advanced Techniques in Web Intelligence Part II.txt").as_slice();
let time_reading = start_time.elapsed();
{
let mut guard = TIME_SPENT_READING_FILES.lock().unwrap();
*guard += time_reading;
}
// let time_reading = start_time.elapsed();
// {
// let mut guard = TIME_SPENT_READING_FILES.lock().unwrap();
// *guard += time_reading;
// }
// analyze(&text, stats);
// analyze2(&text, stats);