• sol_prog Profile Picture

    Paul Silisteanu @sol_prog

    2 months ago

    Why so many C data structures and algorithms books suggest the use of a linked list as support for implementing a stack ? A dynamic array is faster and more cache friendly.

    5 1 20 4K 16
  • AgileJebrim Profile Picture

    Jebrim @AgileJebrim

    2 months ago

    @sol_prog Both are bad. Use a pool.

    1 0 7 282 2
  • w3woody Profile Picture

    Bill Woody @w3woody

    2 months ago

    @sol_prog Back in the day when memory pressures were greater and on processors without memory caches, linked lists were more efficient for many operations—especially when implementing a stack. Even better: pooled allocation of linked list objects.

    1 0 5 290 2
  • bobbikiah Profile Picture

    Geronda Bob @bobbikiah

    2 months ago

    @sol_prog Maybe because cache misses weren’t relatively so severely expensive when the books were written? That’s my guess.

    0 0 5 277 0
  • 1__Mani__1 Profile Picture

    mANI @1__Mani__1

    2 months ago

    @sol_prog A lot of multithreading books use linked lists for stacks, sadge tbh.

    1 0 0 282 0
  • _benwick Profile Picture

    Benwick @_benwick

    2 months ago

    @sol_prog All the books and classes I had growing up made linked lists look amazing and now I almost always use a simple array / pool. Unless you have wildly variable structure sizes (which raises more questions) it's almost always better to use one or more arrays.

    0 0 3 120 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer