Github messages for voidlinux
 help / color / mirror / Atom feed
From: beginner3456789 <beginner3456789@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: PATH duplications
Date: Sat, 15 Feb 2020 18:53:51 +0100	[thread overview]
Message-ID: <20200215175351.5C6ChxORLrBAPfiW-LcOQZDUPOfk8qgBDSOZi0Zd8Ho@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18777@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

New comment by beginner3456789 on void-packages repository

https://github.com/void-linux/void-packages/issues/18777#issuecomment-586625090

Comment:
Just to be curious, I have new results using mksh instead of bash and there is a big difference. This is for 100,000 iterations on my laptop with SSD instead of the previous hard disk test:

    beginning test with PATH= /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
    0m01.92s real     0m00.94s user     0m00.96s system

    beginning test with PATH= /usr/bin
    0m01.07s real     0m00.72s user     0m00.34s system

```
#!/bin/ksh

notfound()
{
echo
echo "beginning test with PATH= $PATH"
while [[ i -lt 100000 ]]
do
"foo${i}" 2>/dev/null
(( i++ ))
done
}

# first test
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
time (notfound)
# second test
PATH=/usr/bin
time (notfound)

```

  parent reply	other threads:[~2020-02-15 17:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-03 17:32 [ISSUE] " voidlinux-github
2020-02-13 17:47 ` voidlinux-github
2020-02-14  1:53 ` voidlinux-github
2020-02-15 17:53 ` beginner3456789 [this message]
2020-02-25 20:58 ` loreb
2020-02-25 20:59 ` loreb
2020-02-25 22:48 ` beginner3456789
2020-02-26 23:16 ` [ISSUE] [CLOSED] " beginner3456789
2020-02-27  2:50 ` eli-schwartz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200215175351.5C6ChxORLrBAPfiW-LcOQZDUPOfk8qgBDSOZi0Zd8Ho@z \
    --to=beginner3456789@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).