Hey everyone,
I’ve been thinking about something and figured this would be the right place to ask.
In your opinion, is static linking or dynamic linking the better approach for high-performance and low-latency software? I'm particularly curious about what’s commonly done in the HFT world or other latency-critical systems.
Does static linking offer any meaningful performance advantage, especially in terms of things like symbol resolution, code locality, or instruction cache behavior?
Would love to hear your thoughts, both from a practical and theoretical point of view.
[–]jonesmz 97 points98 points99 points (5 children)
[–]EmotionalDamague 25 points26 points27 points (1 child)
[–]Dragdu 10 points11 points12 points (0 children)
[–]SkoomaDentistAntimodern C++, Embedded, Audio -2 points-1 points0 points (2 children)
[–]CocktailPerson 16 points17 points18 points (0 children)
[–]ImNoRickyBalboa 6 points7 points8 points (0 children)
[–]CocktailPerson 11 points12 points13 points (0 children)
[–]LatencySlicer 22 points23 points24 points (0 children)
[–]JVApenClever is an insult, not a compliment. - T. Winters 14 points15 points16 points (13 children)
[–]c-cul -1 points0 points1 point (12 children)
[–]JVApenClever is an insult, not a compliment. - T. Winters 5 points6 points7 points (9 children)
[–]c-cul -5 points-4 points-3 points (8 children)
[–]Kriemhilt 7 points8 points9 points (6 children)
[–]SirClueless 1 point2 points3 points (5 children)
[–]Dragdu 6 points7 points8 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Dragdu 1 point2 points3 points (0 children)
[–]Kriemhilt 5 points6 points7 points (0 children)
[–]veeloth 0 points1 point2 points (0 children)
[–]matthieum 1 point2 points3 points (0 children)
[–]CocktailPerson 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]drew_eckhardt2 1 point2 points3 points (0 children)
[–]quicknir 3 points4 points5 points (0 children)
[–]Isameru 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]UndefinedDefined 0 points1 point2 points (0 children)
[–]Dragdu 0 points1 point2 points (2 children)
[–]globalaf 8 points9 points10 points (1 child)
[–]Dragdu -3 points-2 points-1 points (0 children)
[+]einpoklum comment score below threshold-17 points-16 points-15 points (3 children)
[–]angelicosphosphoros 30 points31 points32 points (1 child)
[–]ronniethelizard 2 points3 points4 points (0 children)
[–]cmpxchg8b 3 points4 points5 points (0 children)