<div dir="auto"><div dir="auto">Hi Davide,</div><div dir="auto"><br></div>Thanks a lot for your help!<div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Ahmed</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 31, 2021, 12:45 AM Davide Pesavento <<a href="mailto:davidepesa@gmail.com" target="_blank" rel="noreferrer">davidepesa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ahmed,<br>
<br>
Block::~Block() doesn't create anything. It's the destructor of the<br>
C++ class "Block", which represents a TLV element in memory. The time<br>
spent in the destructor probably includes memory deallocation. Memory<br>
management in the ndn-cxx library has never been seriously optimized,<br>
so I'm not surprised that this shows up in the profiling results.<br>
<br>
Best regards,<br>
Davide<br>
<br>
On Mon, Dec 27, 2021 at 3:25 PM Ahmed Taffal <<a href="mailto:a.taffal96@gmail.com" rel="noreferrer noreferrer" target="_blank">a.taffal96@gmail.com</a>> wrote:<br>
><br>
> And for NFD profiling, I used gprof and as you can see in the picture below, the ndn::Block::~Block() function is the highest time consuming which is used to create an invalid block as mentioned in the ndn-cxx documentation, so I wonder what exactly they mean by invalid block.<br>
><br>
> Regards,<br>
><br>
</blockquote></div>