News for hackers. Stuff that matters.
Re:FreeBSD spends 7% of its boot time running a bubblesort o... by Qweiuu on Friday May 19, 2023 @11:58AM (#36003459)
We now boot so often kernels this is important.

My tv boots a kernel, Alexa's, laptops, cars etc.

And this might be not specifically critical but it's a sign of people just doing something less optimal

Re:FreeBSD spends 7% of its boot time running a bubblesort o... by LeifCarrotson on Friday May 19, 2023 @12:09PM (#36003583)
Do you think those devices boot every time you send them an input, or just when they're plugged in? Unless you're turning the TV on and off thousands of times per day this would be unnoticeable.
Re:FreeBSD spends 7% of its boot time running a bubblesort o... by treesknees on Friday May 19, 2023 @12:25PM (#36003737)
Certain systems on a vehicle make sense to power off. Do you really need the unit controlling your backup camera to be booted into standby while the car is turned off?
Re:FreeBSD spends 7% of its boot time running a bubblesort o... by LeifCarrotson on Friday May 19, 2023 @02:25PM (#36005215)
No, but I'm not taking thousands of six-inch family vacations per day, I'd walk if I wanted to travel a distance for which two milliseconds was noticeable.
Re:FreeBSD spends 7% of its boot time running a bubblesort o... by treesknees on Friday May 19, 2023 @04:58PM (#36006778)
I think you're mixing (bad) analogies to make some type of point but I'm not sure what it is.

The original comment you replied to mentioned cars in the context of booting devices often, so I simply pointed out that yes, actually it makes sense to boot up some devices when they go to receive input and not to leave them in standby as you suggested. In a vehicle that may sit off/idle for several weeks, it's best not to drain the battery unnecessarily.

Re:FreeBSD spends 7% of its boot time running a bubblesort o... by Qweiuu on Friday May 19, 2023 @01:12PM (#36004379)
I probably boot a few embedded devices per day.

If someone did not optimize this this might indicate other optimizations

Re:FreeBSD spends 7% of its boot time running a bubblesort o... by ilyt on Friday May 19, 2023 @01:55PM (#36004889)
Well, a microcontroller in a microwave is a bit different than fully fledged POSIX system and both are "embedded devices".

But yes, I also hate when home router takes forever to reboot and reconnect

Re:FreeBSD spends 7% of its boot time running a bubblesort o... by taeric on Friday May 19, 2023 @12:45PM (#36004004)
Do we? And... do we know that we can make it significantly faster? To wit, will the code be bigger to do a smarter sort such that that itself causes problems? Or, even with a faster sort, is it still 1.6ms?