sim642

joined 2 years ago
MODERATOR OF
[–] sim642@lemm.ee 12 points 2 years ago (3 children)

Or you could just write your backend in JS and save a lot according to this table.

The big inefficiency of PHP is that every request is handled in a new instance as opposed to one process running the server continuously.

[–] sim642@lemm.ee 23 points 2 years ago (2 children)

So it has the intended effect.

[–] sim642@lemm.ee 0 points 2 years ago

Log files themselves don't, but I'm just comparing it with simpler files with simpler structure with simpler algorithms with better complexity.

[–] sim642@lemm.ee 2 points 2 years ago (2 children)

It's not necessarily about the load, it's about the algorithmic complexity. Going from lists (lines in a file, characters in a line) to trees introduces a potentially exponential increase in complexity due to the number of ways the same list of elements can be organized into a tree.

Also, you're underestimating the amount of processing. It's not about pure CPU computations but RAM access or even I/O. Even existing non-semantic diff implementations are unexpectedly inadequate in terms of performance. You clearly haven't tried diffing multi-GB log files.

[–] sim642@lemm.ee 5 points 2 years ago

Just means it's a shit charger that can't handle multiple devices at once because that requires higher quality electronic components.

[–] sim642@lemm.ee 2 points 2 years ago (2 children)

How do you expect it to be shown though?

[–] sim642@lemm.ee 8 points 2 years ago

Because text is text and all } are the same.

[–] sim642@lemm.ee 5 points 2 years ago (4 children)

Diffing algorithms on trees might not be as efficient, especially if they have to find arbitrary node moves.

[–] sim642@lemm.ee 4 points 2 years ago

But where's the start?

[–] sim642@lemm.ee 1 points 2 years ago

Clearly not enough active ones for each and every project out there.

[–] sim642@lemm.ee 1 points 2 years ago (2 children)

Most translations are contributed by external users for languages that the project developers don't speak themselves, so they can't always check everything unless there's multiple active translators for one language.

[–] sim642@lemm.ee 1 points 2 years ago

That wasn't my statement... Stop intentionally misinterpreting what people say!

view more: ‹ prev next ›