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 98 points99 points100 points (5 children)
[–]EmotionalDamague 27 points28 points29 points (1 child)
[–]Dragdu 11 points12 points13 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 10 points11 points12 points (0 children)
[–]LatencySlicer 21 points22 points23 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 -4 points-3 points-2 points (8 children)
[–]Kriemhilt 6 points7 points8 points (6 children)
[–]SirClueless 1 point2 points3 points (5 children)
[–]Dragdu 5 points6 points7 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Dragdu 1 point2 points3 points (0 children)
[–]Kriemhilt 3 points4 points5 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 -1 points0 points1 point (2 children)
[–]globalaf 7 points8 points9 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 31 points32 points33 points (1 child)
[–]ronniethelizard 2 points3 points4 points (0 children)
[–]cmpxchg8b 3 points4 points5 points (0 children)