summaryrefslogtreecommitdiff
path: root/internal/io/line
AgeCommit message (Collapse)Author
2026-03-13task 682e6ae9: filter stale generation outputPaul Buetow
2025-06-28feat: implement channel-less grep for 62% performance improvementPaul Buetow
- Add LineProcessor interface for direct line processing without channels - Implement channel-less file reading in readfile_processor.go - Add optimized reader with 256KB buffering for efficient I/O - Create GrepLineProcessor for direct writing without intermediate channels - Fix serverless mode hanging due to stdin pipe detection - Fix base64 decoding bug (was counting characters instead of arguments) - Fix message output formatting by adding proper newline handling Performance improvements: - Channel-based: 9.00s → Channel-less: 3.42s (62% faster on 100MB files) - Removed channel synchronization overhead and context switching - Reduced memory allocations with buffer pooling Environment variables: - DTAIL_CHANNELLESS_GREP=yes - Enable channel-less implementation - DTAIL_OPTIMIZED_READER=yes - Use optimized buffered reader Known limitation: Inverted grep with context (--invert with --before/--after) not fully implemented in channel-less mode. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2021-12-08Document exported line.New function.Paul Buetow
2021-12-05buffer line.Line for performancePaul Buetow
2021-08-28use a byte.Buffer in the file readerPaul Buetow
2020-12-26code cleanup and minor refactoringsPaul Buetow
2020-02-07Introduce drun command, refactor code to use context packagePaul Bütow