• thevoidzero@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    I think that’s one of the problem with people that are only of a “finish this task cheaply for now” mind.

    Having something run in 0.1 second vs 1 second is fine when a user is running it for one thing. So they consider it good or instantaneous. And later they have to do it for 1000 other things, and they don’t think that saving time in that “instantaneous result” there would save so much more time. They just go “it’s 1000 of these so it takes time”. I’ve found functions that open a db file, read one entry and close it. Then that function is called for each entry they have to read later. In a preprocessing step where they know all the entries they need beforehand. And even the data tyoe to store it is nor preallocated, they just append it on every data read; again on a fixed number of entries they need.

    I understand performance not being the most important thing, but I’d expect least a basic understanding of design that has unnecessary processing.