File tree Expand file tree Collapse file tree
include/ipfixprobe/outputPlugin/outputStorage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ class AllocationBuffer3 : public AllocationBufferBase<ElementType> {
3737 WriterData& writerData = m_writersData[writerIndex].get ();
3838 while (true ) {
3939 writerData.queueIndex = (writerData.queueIndex + 1 ) % m_queues.size ();
40- const uint64_t nextQueueIndex = (writerData.queueIndex + 1 ) % m_queues.size ();
41- m_queues[nextQueueIndex]->prefetch ();
4240 ElementType* res = m_queues[writerData.queueIndex ]->tryPop ();
4341 if (res) {
4442 return res;
@@ -51,8 +49,6 @@ class AllocationBuffer3 : public AllocationBufferBase<ElementType> {
5149 WriterData& writerData = m_writersData[writerIndex].get ();
5250 while (true ) {
5351 writerData.queueIndex = (writerData.queueIndex + 1 ) % m_queues.size ();
54- const uint64_t nextQueueIndex = (writerData.queueIndex + 1 ) % m_queues.size ();
55- m_queues[nextQueueIndex]->prefetch ();
5652 if (m_queues[writerData.queueIndex ]->tryPush (element)) {
5753 return ;
5854 }
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ constexpr std::size_t remap(const std::size_t index) noexcept
2828 /* if (index > std::numeric_limits<uint16_t>::max()) {
2929 throw std::runtime_error("ZZZz");
3030 }*/
31- return index;
32- // return index * 27644437;
33- // return ~index;
34- // return std::byteswap(static_cast<uint16_t>( index) );
31+ // return index;
32+ // return index * 27644437;
33+ // return ~index;
34+ return std::byteswap (index);
3535}
3636
3737template <typename ElementType>
You can’t perform that action at this time.
0 commit comments