4 ms·
That kind of thing won't make a program significantly slower other than a second or two to load, and won't make compiled programs slower at all.
by Dylan16807 4y ago
That kind of thing won't make a program significantly slower other than a second or two to load, and won't make compiled programs slower at all.
- jeffmcmahan 4y agoNo no you're so right. Let's have 500 packages installed to do multiplication. Zero performance impact, I'm sure.
- Dylan16807 4y agoYou seem sarcastic, but you're saying something very true. The number of packages installed should have basically zero impact on performance. What matters is how much code the program runs, and the only extra code you added was import statements. That won't do much in many situations, and in compiled code it will have zero performance impact. The compile will take longer but you're not even the one that has to compile it.
- kevingadd 4y agoDylan is correct. The impact of the packages will be disk space and perhaps startup time, but that's it. The add function gets inlined in basically any runtime environment or compiler, even at O0 most likely.
- userbinator 4y agoIt all adds up.
- kevingadd 4y agoYou can sum as many zeroes as you want, the result is still zero.