Thread (4 messages) flat view 4 messages, 2 authors, 2016-02-22

Re: [PATCH] rtlwifi: pass struct rtl_stats by reference as it is more efficient

From: Alexander Stein <hidden>
Date: 2016-02-22 06:58:09
Also in: linux-wireless, lkml

On Saturday 20 February 2016 22:10:27, Colin King wrote:
From: Colin Ian King <redacted>

passing rtl_stats by value is inefficient; the structure is over 300
bytes in size and generally just one field (packet_report_type)
is being accessed, so the pass by value is a relatively large overhead.
This change just affects just the rx_command_packet calls.
Why not using a const pointer?

Best regards,
Alexander
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help