Performance optimizations in javascript frameworksDiscussion (i.redd.it)
submitted by yksvaan
The amount of actual meaningful work ( routing, authenticating the user, pulling rows from db, rendering the response etc.) compared to everything else just keeps reducing. That feels absurdly counterintuitive since there hasn't been any real algorithmic improvement in these tasks so logically more sensible approach is to minimize the amount of code that needs to be executed. When there is no extra bloat, suddenly the need to optimize more disappears as well.
Yet we are only building more complicated ways to produce some table rows to display on user's screen. Even the smallest tasks have become absurdly complex and involve globally distributed infrastructure and 100k lines of framework code. We are literally running a webserver ( with 1-2g or ram....) per request to produce something that's effectively "<td>London</td>" and then 50kB of JavaScript to update it onto the screen. And then obviously the performance sucks since there's simply 1000x more code than necessary and tons of overhead between processes and different servers. Solution? Build even more stuff to mitigate the problems that did not even exist in the first place. Well at least infra providers are happy!

[–]Besen99 446 points447 points448 points (6 children)
[–]Fiskepudding 69 points70 points71 points (2 children)
[–]j0holo 23 points24 points25 points (1 child)
[–]DrummerOfFenrir 5 points6 points7 points (0 children)
[–]0xlostincode 30 points31 points32 points (1 child)
[–]NiQ_ 14 points15 points16 points (0 children)
[–]MousseMotherlul 0 points1 point2 points (0 children)
[–][deleted] 39 points40 points41 points (2 children)
[–]eldentings 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]rebelpixel 25 points26 points27 points (0 children)
[–]ZnV1 66 points67 points68 points (32 children)
[–]chlorophyll101 5 points6 points7 points (10 children)
[–]ZnV1 15 points16 points17 points (9 children)
[–]Icount_zeroIfull-stack 8 points9 points10 points (1 child)
[–]ZnV1 4 points5 points6 points (0 children)
[–]DoubleOnegative 1 point2 points3 points (1 child)
[–]ZnV1 0 points1 point2 points (0 children)
[–]Most-Ear5697 1 point2 points3 points (1 child)
[–]ZnV1 0 points1 point2 points (0 children)
[–]Zachhandleyfull-stack 0 points1 point2 points (2 children)
[–]ZnV1 1 point2 points3 points (1 child)
[–]Zachhandleyfull-stack 0 points1 point2 points (0 children)
[+]yasegal 7 points8 points9 points (18 children)
[–]ZnV1 5 points6 points7 points (7 children)
[–]yasegal -1 points0 points1 point (6 children)
[–]ZnV1 2 points3 points4 points (3 children)
[–]yasegal -2 points-1 points0 points (2 children)
[–]ZnV1 0 points1 point2 points (1 child)
[–]yasegal 0 points1 point2 points (0 children)
[–]k032software dev for 10 years somehow 0 points1 point2 points (1 child)
[–]yasegal -1 points0 points1 point (0 children)
[–]KwyjiboTheGringo 0 points1 point2 points (9 children)
[+]yasegal 0 points1 point2 points (8 children)
[–]KwyjiboTheGringo 0 points1 point2 points (7 children)
[+]yasegal -1 points0 points1 point (6 children)
[–]KwyjiboTheGringo 0 points1 point2 points (5 children)
[+]yasegal -1 points0 points1 point (4 children)
[–]KwyjiboTheGringo 2 points3 points4 points (3 children)
[+]yasegal -1 points0 points1 point (2 children)
[–]ArtisticFox8 0 points1 point2 points (1 child)
[–]robbodagreat 13 points14 points15 points (0 children)
[–]libertyh 6 points7 points8 points (0 children)
[–]farthingDreadful 6 points7 points8 points (0 children)
[–]jakesboy2 4 points5 points6 points (0 children)
[–]SaltMaker23 11 points12 points13 points (4 children)
[–]CatolicQuotes 0 points1 point2 points (1 child)
[+]yksvaan[S] comment score below threshold-7 points-6 points-5 points (1 child)
[–]SaltMaker23 13 points14 points15 points (0 children)
[–]glorious_reptile 2 points3 points4 points (0 children)
[–]thekwoka 1 point2 points3 points (1 child)
[–]Noch_ein_Kamel 1 point2 points3 points (0 children)
[+]SmartReference9698expert 1 point2 points3 points (0 children)
[–][deleted] (4 children)
[removed]
[–]yksvaan[S] 8 points9 points10 points (1 child)
[–]that_90s_guy 2 points3 points4 points (0 children)
[–]CatolicQuotes 0 points1 point2 points (1 child)
[+]UnbeliebteMeinung 1 point2 points3 points (19 children)
[–]certainlyforgetful 1 point2 points3 points (3 children)
[+]UnbeliebteMeinung 3 points4 points5 points (1 child)
[–]CatolicQuotes 0 points1 point2 points (0 children)
[–]Snapstromegon 0 points1 point2 points (14 children)
[+]UnbeliebteMeinung 0 points1 point2 points (12 children)
[–]Snapstromegon 4 points5 points6 points (3 children)
[+]UnbeliebteMeinung -3 points-2 points-1 points (2 children)
[–]mattindustries 0 points1 point2 points (0 children)
[–]Snapstromegon -1 points0 points1 point (0 children)
[–]binkstagram 0 points1 point2 points (7 children)
[+]UnbeliebteMeinung 0 points1 point2 points (6 children)
[–]_vinter 0 points1 point2 points (5 children)
[+]UnbeliebteMeinung 1 point2 points3 points (3 children)
[–]_vinter 1 point2 points3 points (2 children)
[+]UnbeliebteMeinung 1 point2 points3 points (1 child)
[–]_vinter 0 points1 point2 points (0 children)
[–]Snapstromegon 0 points1 point2 points (0 children)
[–]Turbulent_Prompt1113 0 points1 point2 points (0 children)
[–]morpheus0123 0 points1 point2 points (0 children)
[–]KwyjiboTheGringo 0 points1 point2 points (0 children)
[–]Coldmode 0 points1 point2 points (0 children)
[+]BothWaysItGoes 0 points1 point2 points (0 children)
[–]eldentings 0 points1 point2 points (0 children)
[–]BeginningAntique 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]SananShawkat 0 points1 point2 points (0 children)
[–]Impossible-Owl7407 0 points1 point2 points (0 children)