X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=rN/aFUg eCv0hg04cPhFS3cgXqTeT4FxD7M6IDyx9Jef1HB2oV9PPWTMG2WL3diLw67CfO17 v6NI17iqBb87ENEFazecraJry4kae13/Kn64OzzpPBbKjM4DIbX7hFgff6RAlGKA rqjdFLL/rNcLuPQpiOPvd+JpOv7HFxX1SHbY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=/dkAYwYGJ1pZ/ huUCAEFVXh3O3s=; b=KGm+NeEOoTZnpa0+CfiJVLLAFYVBA33yFh+Cgxm/DyB5B auOzo2oah8566FUplnp6wfz0eOWl3+xq7RdSObJnJrKFWsEWSd9wZStOsXBXaoJR 2K8cpiRQo4HY6p0B06XNgf9mwfKG7NvC8CAafQFYfGJHq+waCjMC9FTphQXspA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=forgotten, million, pasting, click X-HELO: mail-io0-f172.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=6lZ09FSlGrU9qguy8Q+E51mTtWNk9Ap9u4qEuGTDXnU=; b=MZ8HiTsT3Szf9qz3SAO+mp6RtLA9Ept2gPzTrOlFJ6QsQJHpjg5g8rLrfYa2DWroAf vEu3RfVmpxUiG/zreHyyz0DrRz3ZZL50YIaOpEd1cqrYVaxPYmKBzVyMdvFmvTueMOAd z+yhwS/WJC1aAb+GfceAOnovMBdHKpmPmNzecgldllBI6td3guJ9xJl2p6rZaGBQzgjx +abvOX8U1Awy4uoPPDPQodjaEljkn/oBjvTVawHwwlFOwh5sMUFnMEanSyGivv22nnW/ QVNbpZ7bQA/WeXK6FCcjn8JK3x7s4QE8eqIs5U3ezmC6ViWPw+b2VdM1I/1l6Jmtqcw5 5+aQ== MIME-Version: 1.0 In-Reply-To: <5b80a0d3.1c69fb81.386aa.8658@mx.google.com> References: <5b80a0d3 DOT 1c69fb81 DOT 386aa DOT 8658 AT mx DOT google DOT com> From: Lee Date: Fri, 24 Aug 2018 20:45:42 -0400 Message-ID: Subject: Re: speeding up a paste operation To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes On 8/24/18, Steven Penny wrote: > On Fri, 24 Aug 2018 19:30:10, Lee wrote: >> In retrospect, I should have created the file some other way, but still.. >> - grab the top 1M hosts from from >> http://s3-us-west-1.amazonaws.com/umbrella-static/index.html >> - open w/ libreoffice >> - select the host name column, right click & select copy (all 1 million >> lines) >> - (mintty 2.9.0 window already open) vi /tmp/hosts >> - i (get into insert mode) >> - right click (which I have set to "paste") >> >> data is still scrolling by & it's not even up to 100K lines yet :( >> >> Is there some way to make a paste operation faster in mintty (or vim >> or whatever the slowpoke is)? > > Use the right tool for the job: > > $ time awk -F, '{print $2}' top-1m.csv > hosts.txt > real 0m0.686s I'd forgotten how slow pasting is in cygwin.. otherwise I'd have just deleted column 1, saved as text & dos2unix'ed the file Oh well... I was hoping I'd set up something wrong in cygwin, but at least I remember why not to paste lots o lines in cygwin. Thanks Lee -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple