MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / bucket_size_for_image

Function bucket_size_for_image

src/common/image/image_reader.cpp:212–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212static size_t bucket_size_for_image(size_t requested_size) {
213 if (requested_size <= 64 * 1024) {
214 return round_up_to(requested_size, 4 * 1024);
215 }
216 if (requested_size <= 1024 * 1024) {
217 return round_up_to(requested_size, 64 * 1024);
218 }
219 return round_up_to(requested_size, 1024 * 1024);
220}
221}
222
223bytes ImageMemoryPool::acquire(size_t size) {

Callers 2

acquireMethod · 0.85
recycleMethod · 0.85

Calls 1

round_up_toFunction · 0.85

Tested by

no test coverage detected