this post was submitted on 08 Jun 2025
190 points (98.5% liked)

Programming

21526 readers
605 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] manxu@piefed.social 11 points 1 month ago (4 children)

we traced the issue to a 15-year-old Git function with O(N²) complexity and fixed it with an algorithmic change, reducing backup times exponentially.

I feel like there is something wrong with this sentence.

[–] _taem@discuss.tchncs.de 16 points 1 month ago (1 children)

I'm not a native speaker, but would agree that it sounds imprecise. To my understanding, that's a polynomial reduction of the time (O(n^2) to O(n): quadratic to linear) and not an exponential speed-up (O(2^n) to O(n): exponential to linear). 🤷 Colloquially, "exponentially" seems to be used synonymously to "tremendously" or similar.

[–] Giooschi@lemmy.world 7 points 1 month ago (1 children)

and not an exponential speed-up (O(2^n) to O(n): exponential to linear)

Note that you can also have an exponential speed-up when going from O(n) (or O(n^2) or other polynomial complexities) to O(log n). Of course that didn't happen in this case.

[–] kureta@lemmy.ml 1 points 1 month ago
[–] Deebster@infosec.pub 10 points 1 month ago* (last edited 1 month ago) (2 children)

Seem ok to me, both in grammar and what it's saying about the change. O(N²) to O(N) would be an exponential drop (2 down to 1, in fact).

[–] Giooschi@lemmy.world 7 points 1 month ago

An "exponential drop" would be a drop that follow an exponential curve, but this doesn't. What you mean is a "drop in the exponent", which however doesn't sound as nice.

[–] Bogasse@lemmy.ml 5 points 1 month ago

It's at least misleading 😛

But I have to agree that for any non-math people this would convey the right idea, whereas "quadratic improvement" would probably not mean anything 🤷

[–] drspod@lemmy.ml 8 points 1 month ago (1 children)

They make the same mistake further down the article:

However, the implementation of the command suffered from poor scalability related to reference count, creating a performance bottleneck. As repositories accumulated more references, processing time increased exponentially.

This article writer really loves bullet point lists, too. 🤨

[–] FizzyOrange@programming.dev 6 points 1 month ago (1 children)

There isn't. This is the colloquial use of "exponentially" which is very obvious from the context.

[–] drspod@lemmy.ml -1 points 1 month ago (1 children)

On a technical blog post by a software company about the details of solving an algorithmic complexity problem?

Careless, and showing that the author does not understand technical communication, where precision is of great importance.

[–] FizzyOrange@programming.dev 0 points 1 month ago (1 children)

This is fine precisely because it is a blog post. If it was a scientific paper... sure maybe they shouldn't say that. But the meaning is abundantly clear from the context. There is no ambiguity.

[–] drspod@lemmy.ml -5 points 1 month ago (1 children)
[–] FizzyOrange@programming.dev 0 points 1 month ago

Because I can read? Lol ok.