this post was submitted on 20 Jan 2024
84 points (100.0% liked)

Technology

37707 readers
482 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] pearsaltchocolatebar@discuss.online 21 points 9 months ago (3 children)

Code optimization has pretty much fallen by the way side since ram prices keep going down and cpu performance keeps improving.

Why spend the time if you don't have to?

Browsers are some of the worst culprits.

[–] jarfil@beehaw.org 11 points 9 months ago

Browser canvas is one of the worst culprits: it has to keep a buffer with an uncompressed bitmap several screens in size.

Old browsers used to keep a single screen worth of canvas buffer, then redraw stuff as you scrolled... which made it a horrible experience. You can still find some of that with "clever" web designs where they replace fonts or move things dynamically as you scroll.

Then you have websites with "infinite scroll" that just keep increasing the canvas buffer size more and more and more, to infinity and beyond... and people wonder why their Facebook or Reddit tabs use so much RAM.

[–] noctisatrae@beehaw.org 10 points 9 months ago

Just for the sake of a beautiful audited and blazingly fast codebase that tuns qo good that Raspberry Pi user can run your stuff too.

I love optimisation!

[–] MalReynolds@slrpnk.net 8 points 9 months ago (1 children)

premature optimization is the root of all evil - Donald Knuth

which does not excuse a total lack of optimization, but gotta hit those kpi's

[–] drre@feddit.de 1 points 9 months ago

if it remember it correctly it was said in relation to algorithm optimization > code optimization