1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-07 18:54:06 +00:00

Improve performance by using const and std::move() to avoid unnecessary copies

This commit is contained in:
Carles Fernandez
2018-12-03 19:01:47 +01:00
parent 2709dc5ec7
commit 1743a773b5
136 changed files with 309 additions and 268 deletions

View File

@@ -73,6 +73,7 @@
#include <exception>
#include <memory>
#include <queue>
#include <utility>
#include <vector>
@@ -124,7 +125,7 @@ void FrontEndCal_msg_rx::msg_handler_events(pmt::pmt_t msg)
{
try
{
int64_t message = pmt::to_long(msg);
int64_t message = pmt::to_long(std::move(msg));
rx_message = message;
channel_internal_queue.push(rx_message);
}
@@ -173,7 +174,7 @@ void wait_message()
}
bool front_end_capture(std::shared_ptr<ConfigurationInterface> configuration)
bool front_end_capture(const std::shared_ptr<ConfigurationInterface>& configuration)
{
gr::top_block_sptr top_block;
GNSSBlockFactory block_factory;