{"by":"mprataps","descendants":56,"id":44072788,"kids":[44074038,44075559,44075429,44073985,44073793,44074005,44082624,44073696,44081363,44073615,44073915,44074972,44074000,44074550],"score":66,"text":"Hi HN,\nI built a Java library called SmartFileProcessor to make high-performance, multi-threaded file processing simpler and more maintainable.<p>Most Java file processing solutions either involve a lot of boilerplate or don’t handle concurrency, backpressure, or metrics well out of the box. I needed something fast, clean, and production-friendly — so I built this.<p>Key features:<p>Multi-threaded line&#x2F;batch processing using a configurable thread pool<p>Producer&#x2F;consumer model with built-in backpressure<p>Buffered, asynchronous writing with optional auto-flush<p>Live metrics: memory usage, throughput, thread times, queue stats<p>Simple builder API — minimal setup to get going<p>Output metrics to JSON, CSV, or human-readable format<p>Use cases:<p>Large CSV or log file parsing<p>ETL pre-processing<p>Line-by-line filtering and transformation<p>Batch preparation before ingestion<p>I’d really appreciate your feedback — feature ideas, performance improvements, critiques, or whether this solves a real problem for others. Thanks for checking it out!","time":1748007566,"title":"Show HN: Samchika – A Java Library for Fast, Multithreaded File Processing","type":"story","url":"https://github.com/MayankPratap/Samchika"}