From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: Dired C idea Date: Tue, 03 Aug 2021 20:31:52 +0000 Message-ID: References: <87sfzur4gi.fsf@gmx.de> <877dh5r4gd.fsf@gmx.de> <87tuk7q1mx.fsf@gmx.de> <87mtpypxd9.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31703"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 03 22:32:31 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mB15S-00082L-Sn for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Aug 2021 22:32:31 +0200 Original-Received: from localhost ([::1]:46262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mB15R-0001ND-3V for ged-emacs-devel@m.gmane-mx.org; Tue, 03 Aug 2021 16:32:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB14u-0000iQ-RT for emacs-devel@gnu.org; Tue, 03 Aug 2021 16:31:56 -0400 Original-Received: from heytings.org ([95.142.160.155]:38294) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB14t-0001ze-3Q; Tue, 03 Aug 2021 16:31:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1628022712; bh=nVOOA4D7dbRS2mnNozlc7BtfUdAK3zcKpLBguZISerU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=JT9MT2gvIkz5uuFYWNC4lS7xPw8pKxnwEFhV2rltMYCu3Ez3kJAasX/EsPYxK+2sD td9FUoRoJu7ZEktPRDmyzxbL86wLaPmkifnUMfrGPJ+k2cntM2+DHpVNKnrVU4p/vP +7hd/i1lP/BDjp3k4ljs0UEXK1M95b2b3XtaCVPGaWGc0hp2mc8lr4kPGmdgob1cBT 5SKhNtHBjXBUVxl44d6XJefJq1TCR1E7bnzYwJ3K1cEyamrKLoJ6RoQXHrDudnCxGI QXAAOxNC/rW24AB+/Igy019QulWee+p+NR5ZjcUKG/SxevsiONR+08b8JIMI9X2c5F lZnyuEVjSte5w== In-Reply-To: <87mtpypxd9.fsf@gmx.de> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271999 Archived-At: >> I would like to see some benchmark figures first. For example, I'm not >> sure that rsync performs better when the target directory does not >> exist yet, and there's nothing to sync. > > I made some comparison between "cp -pr" and "rsync -pr" on shell level. > [...] "rsync -pr" is slower than "cp -pr". > Yes, nothing can beat cp; rsync is always slower (and uses more memory) compared to cp because it does more than just copying files. It is faster only when copying files from/to a remote host when some files already exist on both sides (which is its original purpose). But rsync is also much more powerful tool compared to cp, even when it is used locally: as Richard said it can resume an aborted/partial copy, it can synchronize two directories, it has options to include or exclude file patterns, it has a progress indicator, and so forth. So as the manpage says, it is an "improved copy command".