<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body dir="auto"><div dir="auto"><br></div><div dir="auto">Hi, </div><div dir="auto">Yep, I'm talking about the block_ChainLastAppend as of the current implementation to append to last node you have to iterate over all the node till you find last one no matter what. If you could just store the point of the last node the overhead of iterating is no more and this would speed up the process of appending to last node. </div><div dir="auto"><br></div><div dir="auto">Regards</div><div dir="auto">Amit Singh</div><div dir="auto"><br></div><div dir="auto"><br></div><div id="composer_signature" dir="auto"><div style="font-size:85%;color:#575757" dir="auto">Sent from my Samsung Galaxy smartphone.</div></div><div><br></div><div style="font-size:100%;color:#000000" dir="auto"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Alexandre Janniaux <ajanni@videolabs.io> </div><div>Date: 27/07/19  1:57 PM  (GMT+05:30) </div><div>To: Mailing list for VLC media player developers <vlc-devel@videolan.org> </div><div>Subject: Re: [vlc-devel] Enquiry about vlc_block.h </div><div><br></div></div><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">Can you describe your issue with code ?</div><div dir="auto"><br></div><div dir="auto">IIUC you're looking for block_ChainLastAppend ?</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">-- </div><div dir="auto">Alexandre Janniaux</div><div dir="auto">VideoLabs</div></div><div class="gmail_extra"><br><div class="gmail_quote">Le 26 juil. 2019 10:31 PM, Amit Singh <amitsingh19975@gmail.com> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi,<br>
My name is Amit Singh and I just wanted to know about block_t struct. My question is that why we are traversing block_t when we can store<br>
the pointer to the last node which could remove overhead of iterating over a linked list, is it because of size constraint ?</p>
<p dir="ltr">Best Regards<br>
Amit Singh<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
https://mailman.videolan.org/listinfo/vlc-devel</p>
</blockquote></div><br></div></body></html>