From 2ccdfc547d5b58bdc859e4497658e972d7af5c45 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Mon, 15 Sep 2014 16:19:38 -0500 Subject: ruby: network: revert some of the changes from ad9c042dce54 The changeset ad9c042dce54 made changes to the structures under the network directory to use a map of buffers instead of vector of buffers. The reasoning was that not all vnets that are created are used and we needlessly allocate more buffers than required and then iterate over them while processing network messages. But the move to map resulted in a slow down which was pointed out by Andreas Hansson. This patch moves things back to using vector of message buffers. --- src/mem/ruby/network/Network.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mem/ruby/network/Network.cc') diff --git a/src/mem/ruby/network/Network.cc b/src/mem/ruby/network/Network.cc index 2d9376b08..5f1fff195 100644 --- a/src/mem/ruby/network/Network.cc +++ b/src/mem/ruby/network/Network.cc @@ -85,11 +85,11 @@ Network::~Network() // Delete the Message Buffers for (auto& it : m_toNetQueues[node]) { - delete it.second; + delete it; } for (auto& it : m_fromNetQueues[node]) { - delete it.second; + delete it; } } -- cgit v1.2.3