Actions
Task #2957
closedBug #2865: Reduce Keep server memory use
Review 2865-keep-memory-usage
Description
Review @ 70dd308
Eliminated ioutil.ReadAll, which was naively allocating buffers 2x as large as necessary.
- Rewrote main.PutBlockHandler to allocate a buffer of exactly req.ContentLength bytes, and fill it with io.ReadFull.
- UnixVolume.Read now uses ioutil.ReadFile to read the contents of a block file (which it should have been doing in the first place)
Updated by Ward Vandewege about 10 years ago
- Status changed from New to In Progress
Updated by Ward Vandewege about 10 years ago
- Assigned To changed from Ward Vandewege to Tim Pierce
Updated by Tim Pierce about 10 years ago
- Status changed from In Progress to Resolved
- Remaining (hours) changed from 1.0 to 0.0
Actions