X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 36B193858433 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=spocom.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=spocom.com DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; d=spocom.com; s=mail; h=received:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:x-operating-system:user-agent; b=cAN+aHmlkkarkZ3GhCF3AeK7uiSQFMEOEoTcGAD+JmN9Pb7g+I7VHp38N0aXL0fba j1v66J6YQPH8bNa+2MhoA== Date: Fri, 11 Mar 2022 12:43:39 -0800 From: Gary Johnson To: cygwin AT cygwin DOT com Subject: Re: Bash runs my vim slower than Cygwin's vim Message-ID: <20220311204339.GC10070@phoenix> Mail-Followup-To: cygwin AT cygwin DOT com References: <20220311005540 DOT GB5869 AT phoenix> <20220311090306 DOT mei46daorlpgorym AT lucy DOT dinwoodie DOT org> <20220311173910 DOT GB10070 AT phoenix> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220311173910.GB10070@phoenix> X-Operating-System: Linux 2.6.32-74-generic GNU/Linux User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 2022-03-11, Gary Johnson wrote: > On 2022-03-11, Adam Dinwoodie wrote: > > On Thu, Mar 10, 2022 at 04:55:40PM -0800, Gary Johnson wrote: > > > So, does anyone know why is takes so much longer for bash to run the > > > vim I built than the official Cygwin vim? More importantly, how do > > > I fix this? > > - Cygwin packages built using Cygport and packaged for release will have > > the binaries stripped, removing debug symbols and the like and > > separating them into a different -debug package. That means that the > > binaries that are loaded for day-to-day use are smaller, and may well > > mean they're faster too. > > The Cygwin vim was built with -ggdb, but I didn't look for strip and > Cygwin's file doesn't report whether or not binaries are stripped-- > it probably can't determine that. I'll try stripping mine. Just a quick update: I stripped my version and the real time for my benchmark test dropped from 1.42 s to 0.40 s. Still not as low as Cygwin's vim (0.12 s), but a substantial improvement. Regards, Gary -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple