Liste des Groupes | Revenir à cl c |
On 14/06/2024 17:43, David Brown wrote:We all remember that :-)On 13/06/2024 16:43, Michael S wrote:I remember complaining that some tool installations were bloated at 100MB, 500MB, 1000MB or beyond, and your attitude was So what, since there is now almost unlimited storage.Somewhat more than a second on less modern hardware. Enough for me to>
feel that compilation is not instant.
But 1 MB is just an arbitrary number. For 20 MB everybody would feel
the difference. And for 50 MB few people would not want it to be much
faster.
>
But what would be the point of trying to embed such files in the first place? There are much better ways of packing large files.
But now of course, it's Why would someone ever want to do X with such a large file! Suddenly large files are undesirable when it suits you.It's a /completely/ different situation. Anyone doing development work is going to have a machine with lots of space - 1 GB is peanuts for space on a disk. But that does not mean it makes sense to have a 1 GB initialised array in an executable!
Using the best tool available for the job, and using a better tool if one becomes available, is a "bad attitude" ?You can always increase sizes for things until you get problems or annoying slowdowns, but that does not mean that will happen in practical situations.That's a really bad attitude. It partly explains why such things as #embed take so long to get added.
>
And even if you /did/ want to embed a 20 MB file, and even if that took 20 seconds, so what? Unless you have a masochistic build setup, such as refusing to use "make" or insisting that everything goes in one C file that is re-compiled all the time, that 20 second compile is a one-off time cost on the rare occasion when you change the big binary file.
>
Now, I am quite happy to agree that faster is better, all other things being equal. And convenience and simplicity is better. Once the compilers I use support #embed, if I need to embed a file and I don't need anything more than an array initialisation, I'll use #embed. Until then, 5 seconds writing an "xxd -i" line in a makefile and a 20 second compile (if it took that long) beats 5 minutes writing a Python script to generate string literals even if the compile is now 2 seconds.
I've heard lots of horror stories elsewhere about projects taking minutes, tens of minutes or even hours to build.I agree - some kinds of builds take a /long/ time. Embedding binary blobs has absolutely nothing to do with it. Indeed, long build times are often the result of trying to put too much in one build rather than splitting things up in separate files and libraries. (Sometimes such big builds are justified, such as for large programs with very large user bases.)
How much of that is due to attitudes like yours? You've managed to find ways of working around speed problems, by throwing hardware resources at it (fast processors, loads of memory, multiple cores, SSD, RAM-disk), or using ingenuity in *avoiding* having to compile stuff as much as possible. Or maybe the programs you build aren't that big.You are joking, right? Or trolling?
Les messages affichés proviennent d'usenet.