mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 04:47:54 +02:00
eb91356e28
This replaces the `sync.Pool` allocator with lib/pool. This implements a pool of buffers of up to 64MB which can be re-used but is flushed every 5 seconds. If `--use-mmap` is set then rclone will use mmap for memory allocations which is much better at returning memory to the OS.