[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add sleep builtin
From: |
Jaren Stangret |
Subject: |
Re: Add sleep builtin |
Date: |
Sun, 19 Aug 2018 13:51:47 -0500 |
Additionally, for simple uses, using:
read -t<floating point>
Works for pseudo built-in sleep. Not easy to use in subshells, or with any
forks.
On Sun, Aug 19, 2018, 12:12 PM konsolebox <konsolebox@gmail.com> wrote:
> On Mon, Aug 20, 2018 at 12:26 AM, Clint Hepner <clint.hepner@gmail.com>
> wrote:
> >
> >> On Aug 19, 2018, at 10:25 AM, konsolebox <konsolebox@gmail.com> wrote:
> >>
> >> Hi Chet,
> >>
> >> The sleep command is often used in loops and using the external sleep
> >> is expensive.
> >
> > Expensive is relative, as the time spent actually sleeping probably
> dwarfs the startup time.
>
> Forking is expensive, and collectively is hugely expensive. The
> external sleep is also yet another child process to manage.
>
> > If not, you probably want to find an alternative to polling anyway.
>
> Sure, that would be for another solution. Meanwhile I have a patch
> which adds about 10 lines of significant runtime code to offer.
>
> --
> konsolebox
>
>
- Add sleep builtin, konsolebox, 2018/08/19
- Re: Add sleep builtin, Clint Hepner, 2018/08/19
- Re: Add sleep builtin, konsolebox, 2018/08/19
- Re: Add sleep builtin,
Jaren Stangret <=
- Re: Add sleep builtin, L A Walsh, 2018/08/21
- Re: Add sleep builtin, Bob Proulx, 2018/08/25
- Re: Add sleep builtin, L A Walsh, 2018/08/27
- Re: Add sleep builtin, Robert Elz, 2018/08/27
- Re: Add sleep builtin, L A Walsh, 2018/08/27
Re: Add sleep builtin, Chet Ramey, 2018/08/20