Files
next.orly.dev/pkg
mleku b47a40bc59 Implement EstimateSize method for filter marshaling and optimize Marshal function
- Added EstimateSize method to calculate the estimated size for marshaling the filter to JSON, accounting for various fields including IDs, Kinds, Authors, Tags, and timestamps.
- Enhanced the Marshal function to pre-allocate the buffer based on the estimated size, reducing memory reallocations during JSON encoding.
- Improved handling of nil tags and optimized key slice reuse in the Unmarshal function to minimize allocations.
2025-11-02 17:52:16 +00:00
..