trufflehog/pkg/handlers
ahrav 42b3a9d999
[perf] - Optimize MIME Type Detection to Reduce Allocations (#3048)
* Streaming file handling.

* cleanup

* update tests

* lint

* defer close on input io.ReadCloser's

* remove redundant mime type detection

* Reduce allocations

* fix test

* update comment

* fix seek bug

* address comment

* undo
2024-07-17 14:04:29 -07:00
..
testdata [feat] - Streamlined File Handling with BufferedReaderSeeker (#3041) 2024-07-17 13:52:18 -07:00
ar.go [perf] - Optimize MIME Type Detection to Reduce Allocations (#3048) 2024-07-17 14:04:29 -07:00
ar_test.go [feat] - Streamlined File Handling with BufferedReaderSeeker (#3041) 2024-07-17 13:52:18 -07:00
archive.go [perf] - Optimize MIME Type Detection to Reduce Allocations (#3048) 2024-07-17 14:04:29 -07:00
archive_test.go [feat] - Streamlined File Handling with BufferedReaderSeeker (#3041) 2024-07-17 13:52:18 -07:00
default.go [perf] - Optimize MIME Type Detection to Reduce Allocations (#3048) 2024-07-17 14:04:29 -07:00
default_test.go [feat] - Streamlined File Handling with BufferedReaderSeeker (#3041) 2024-07-17 13:52:18 -07:00
handlers.go [perf] - Optimize MIME Type Detection to Reduce Allocations (#3048) 2024-07-17 14:04:29 -07:00
handlers_test.go [feat] - Streamlined File Handling with BufferedReaderSeeker (#3041) 2024-07-17 13:52:18 -07:00
metrics.go [refactor] - Refactor Archive Handling Logic (#2703) 2024-05-10 11:36:06 -07:00
rpm.go [perf] - Optimize MIME Type Detection to Reduce Allocations (#3048) 2024-07-17 14:04:29 -07:00
rpm_test.go [feat] - Streamlined File Handling with BufferedReaderSeeker (#3041) 2024-07-17 13:52:18 -07:00