Skip to content

Commit

Permalink
Implement PGRXSharedMemory for Deque
Browse files Browse the repository at this point in the history
Having a double ended queue allows for more efficient FIFO workloads
when using shared memory
  • Loading branch information
feikesteenbergen committed Jun 16, 2023
1 parent ecbf925 commit 9d01b2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pgrx/src/shmem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ where
{
}
unsafe impl<T, const N: usize> PGRXSharedMemory for heapless::Vec<T, N> {}
unsafe impl<T, const N: usize> PGRXSharedMemory for heapless::Deque<T, N> {}
unsafe impl<K: Eq + Hash, V: Default, S, const N: usize> PGRXSharedMemory
for heapless::IndexMap<K, V, S, N>
{
Expand Down

0 comments on commit 9d01b2f

Please sign in to comment.