Skip to content

Commit 15855ca

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
++
1 parent 797318c commit 15855ca

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

include/ipfixprobe/outputPlugin/outputStorage/allocationBuffer3.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

include/ipfixprobe/outputPlugin/outputStorage/outputStorage.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

3737
template<typename ElementType>

0 commit comments

Comments
 (0)