MCPcopy Create free account
hub / github.com/erans/pgsqlite / global_buffer_pool

Function global_buffer_pool

src/protocol/buffer_pool.rs:382–387  ·  view source on GitHub ↗

Get the global buffer pool instance

()

Source from the content-addressed store, hash-verified

380
381/// Get the global buffer pool instance
382pub fn global_buffer_pool() -> &'static BufferPool {
383 GLOBAL_BUFFER_POOL.get_or_init(|| {
384 let config = BufferPoolConfig::from_env();
385 BufferPool::with_config(config)
386 })
387}
388
389/// Get a buffer from the global pool
390pub fn get_pooled_buffer() -> PooledBytesMut {

Callers 2

get_pooled_bufferFunction · 0.85
test_global_buffer_poolFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_global_buffer_poolFunction · 0.68