MCPcopy Create free account
hub / github.com/BlazingDB/blazingsql / estimate_operating_bytes

Method estimate_operating_bytes

engine/src/execution_kernels/kernel.cpp:142–148  ·  view source on GitHub ↗

This is only the default estimate of the bytes needed by the kernel to perform the operation based on the input. Each kernel should implement its own version of this, if its possible to obtain a better estimate

Source from the content-addressed store, hash-verified

140// This is only the default estimate of the bytes needed by the kernel to perform the operation based on the input.
141// Each kernel should implement its own version of this, if its possible to obtain a better estimate
142std::size_t kernel::estimate_operating_bytes(const std::vector<std::unique_ptr<ral::cache::CacheData > > & inputs){
143 std::size_t bytes_esimate = 0;
144 for (auto & input : inputs) {
145 bytes_esimate += input->sizeInBytes();
146 }
147 return bytes_esimate;
148}
149
150} // end namespace cache
151} // end namespace ral

Callers 1

task_memory_neededMethod · 0.80

Calls 1

sizeInBytesMethod · 0.45

Tested by

no test coverage detected