MCPcopy Create free account
hub / github.com/bytedance/bolt / releaseVector

Method releaseVector

bolt/core/QueryCtx.h:351–356  ·  view source on GitHub ↗

Moves 'vector' to the pool if it is reusable, else leaves it in place. Returns true if the vector was moved into the pool.

Source from the content-addressed store, hash-verified

349 /// Moves 'vector' to the pool if it is reusable, else leaves it in
350 /// place. Returns true if the vector was moved into the pool.
351 bool releaseVector(VectorPtr& vector) {
352 if (vectorPool_) {
353 return vectorPool_->release(vector);
354 }
355 return false;
356 }
357
358 /// Moves elements of 'vectors' to the pool if reusable, else leaves them
359 /// in place. Returns number of vectors that were moved into the pool.

Callers 10

evalSpecialFormMethod · 0.80
evalSpecialFormMethod · 0.80
evalSpecialFormMethod · 0.80
evalSpecialFormMethod · 0.80
evalWithMemoMethod · 0.80
applyMethod · 0.80
evalSpecialFormMethod · 0.80
releaseVectorFunction · 0.80
TEST_FFunction · 0.80

Calls 1

releaseMethod · 0.45

Tested by 1

TEST_FFunction · 0.64