From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id A41EB1EFDF6; Fri, 18 Nov 2016 12:30:18 -0500 (EST) Received: from hera.aquilenet.fr (hera.aquilenet.fr [141.255.128.1]) by befuddled.reisers.ca (Postfix) with ESMTP id 88C2B1EFDDD for ; Fri, 18 Nov 2016 12:30:17 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1656990A5 for ; Fri, 18 Nov 2016 18:30:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vDdQSZ2O612O for ; Fri, 18 Nov 2016 18:30:16 +0100 (CET) Received: from var.youpi.perso.aquilenet.fr (unknown [IPv6:2a01:cb19:181:c200:3602:86ff:fe2c:6a19]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9C1A5385 for ; Fri, 18 Nov 2016 18:30:16 +0100 (CET) Received: from samy by var.youpi.perso.aquilenet.fr with local (Exim 4.87) (envelope-from ) id 1c7mzQ-0003fb-4E for speakup@linux-speakup.org; Fri, 18 Nov 2016 18:30:16 +0100 Date: Fri, 18 Nov 2016 18:30:16 +0100 From: Samuel Thibault To: "Speakup is a screen review system for Linux." Subject: Re: using system serial tty drivers Message-ID: <20161118173016.GX3422@var.home> References: <20161118172747.GA25081@db> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161118172747.GA25081@db> User-Agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2016 17:30:18 -0000 David, on Fri 18 Nov 2016 12:02:44 -0500, wrote: > The purpose of defines is that all drivers will dump the old serial stuff > eventually. Yes, but we don't want to do that without testing. > Just wrappping serial_out to do one character transfers is a > performance hit big time. No. We are talking about serial ports, which are very slow anyway. > that is why I refactored the buffer handlers > so you can do. Did you measure any actual performance improvement ? A function call is at most like a few instructions, i.e. the order of a nanosecond. On serial ports, at the very very best, characters take an order of a microsecond to transfer. Again, complex code is really not what you want in the end if it doesn't bring much improvement. Samuel