www.delorie.com/archives/browse.cgi | search |
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:content-type:mime-version:subject:from | |
:in-reply-to:date:content-transfer-encoding:message-id | |
:references:to; q=dns; s=default; b=tJP8H61SCCcQGjlBI8aUJdvtEF3g | |
DbgU3mFRydAnqvtqIdr2QIonUGQ913r0MNy54kxy6zDI2Uy8tqywiJa0SOinb20u | |
rfudxj4RZbKUX6ZbPkp/OvljFQkVIDpLDAR/vYOZ1bMjECN3KMxja9vSzFMnQDdp | |
n+ybIl3jtix4pFo= | |
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:content-type:mime-version:subject:from | |
:in-reply-to:date:content-transfer-encoding:message-id | |
:references:to; s=default; bh=xR1YiSRZrqd10Ve81I78x8PwVmQ=; b=CG | |
R7NUFokX8CG/oZxr6ytbinLt1dl/zUDgJIlzL1bLJKSWad/Nh2qf4NKKRP6pko8I | |
mn0z67A54dMEuckLq4VGKOntUOpop4adO1vgg7RnExOE8+9wi2SwWAaNekFArBfl | |
auC8SkQjjqu0beHF5Kd0ZRtp1fqmDuCi7GaXipHYc= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=0.8 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 |
X-HELO: | etr-usa.com |
Mime-Version: | 1.0 (Mac OS X Mail 8.2 \(2098\)) |
Subject: | Re: [ANNOUNCEMENT] Updated: setup.exe (Release 2.871) |
From: | Warren Young <wyml AT etr-usa DOT com> |
In-Reply-To: | <20150531102453.GA4323@calimero.vinschen.de> |
Date: | Mon, 1 Jun 2015 14:05:08 -0600 |
Message-Id: | <3C15F869-E2D8-4DB6-912A-C325576D928B@etr-usa.com> |
References: | <announce DOT 20150529135159 DOT GA25145 AT calimero DOT vinschen DOT de> <CAAXzdLW4x8b9ffRR4t-0KtUq9cugBQrpu8zXF57z4MR=SGSibA AT mail DOT gmail DOT com> <20150531102453 DOT GA4323 AT calimero DOT vinschen DOT de> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id t51K5OKv029851 |
On May 31, 2015, at 4:24 AM, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote: > > On May 29 17:49, Steven Penny wrote: >> On Fri, May 29, 2015 at 8:51 AM, Corinna Vinschen wrote: >>> - Improved performance in terms of SHA512 checksum computation. >> >> Thanks for this, but how was it done? > > It was embarrassingly simple: That reminds me of a case I ran into a few months ago. I have some UDP stream reception code that works perfectly on Linux. Someone wanted it on Windows, too, so I ported it in an afternoon, a relatively easy task since Winsock is mostly a superset of BSD sockets, and there wasn’t much to the app besides Standard C++ and sockets code. It worked fine on my machine, so I shipped it off, confident that it would work just as well as the Linux version. Then I start getting field reports about dropped packets whenever the machine wasn’t perfectly idle while running the app. This is not a high data rate application. With the 8 kiB buffers I was using — a perfectly sensible size for UDP — it would take about 3 ms to overflow a buffer. That’s approximately forever in CPU time, so I felt it was more than adequate, even considering multitasking overheads. In the end, I had to increase the UDP stack buffers for the Windows port to 64 kiB to get it to work reliably on Windows, which effectively increased the buffer time to ~23 ms. That means the time-slice delay was somewhere between 3 and 22 ms! That’s on the scale of HDD head seek times, one of the slowest things a computer does! -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |