[vlc-devel] Enquiry about vlc_block.h

Rémi Denis-Courmont remi at remlab.net
Mon Jul 29 19:46:30 CEST 2019


Le perjantaina 26. heinäkuuta 2019, 23.31.01 EEST Amit Singh a écrit :
> Hi,
> 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 the
> pointer to the last node which could remove overhead of iterating over a
> linked list, is it because of size constraint ?

We do store the pointer to the last pointer in the block FIFO. It is only a 
matter of practicality and laziness that it was not done for the block chain.

-- 
Rémi Denis-Courmont
http://www.remlab.net/





More information about the vlc-devel mailing list