coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What tricks used in readlink to make it faster than realpath bash lo


From: Eric Blake
Subject: Re: What tricks used in readlink to make it faster than realpath bash loadable?
Date: Thu, 13 Dec 2018 16:02:30 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1

On 12/13/18 3:37 PM, Peng Yu wrote:
Hi,

`readlink` is faster than `realpath` for a large number of input
arguments. Note that the former starts slower than the latter. What
tricks is used in readlink to make it faster? Thanks.

Why don't you use strace and/or read the code to compare the two implementations, instead of asking someone else to do it for you?

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]