From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by sourceware.org (Postfix) with ESMTPS id D3AC2385780E for ; Mon, 9 Nov 2020 09:15:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D3AC2385780E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=corinna-cygwin@cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MN4qp-1kuYA040I9-00Iyg9 for ; Mon, 09 Nov 2020 10:15:29 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7B712A80BFB; Mon, 9 Nov 2020 10:15:29 +0100 (CET) Date: Mon, 9 Nov 2020 10:15:29 +0100 From: Corinna Vinschen To: cygwin-developers@cygwin.com Subject: Re: Size of fhandler_fifo Message-ID: <20201109091529.GW33165@calimero.vinschen.de> Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com References: <8814992e-ef08-31f5-3086-ad1caafff4de@cornell.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8814992e-ef08-31f5-3086-ad1caafff4de@cornell.edu> X-Provags-ID: V03:K1:JqimaZJpFIteI73br8kqANKtQcQuz3kGXi0y/wXzcBJA5CsHKyY I1iClCTPxjm03BnwWK/WSCXDg/XagfdR6DAREa+euo91TyppDi9mC+HmOIf8xwCZHrgSS6n 0uKCyT0dZKGy1XEBBP5ROjpB47XHWOrJWVDpvJqaXVTRvfddP6nycnPdEw72l64fYkyZj0K TISGPV2vY1JVoTEdIUCLg== X-UI-Out-Filterresults: notjunk:1;V03:K0:IxvyEWkj5yY=:Ib9sahobizL8ua6ru6O7gR 2+PMFVhazrw6LmIsJ/0q0Gir2Kxu6TY/nYgEOxBbydHrlWngtfGYHdxqL/g+bbdM1pIE0zELW ZA/E2hPEITMEkRQeuZnd7P4q9mNLQjFGWrDhdBApH1s63DUUlqeFUHEbBkxDldmbv27SVRALx Ouk9ZWbygmfwmNSaJtLH6IN/jg1MGrOehjgvWOCHxaKt4CotQ2wmGgFjjDJQ9V+++5xaZ6la5 7K7njMVffDm8HzDu4yursapfwluNGBUj25goL86wS7JdDG+Kgw4mx7mSHfc5Q6TyKxa3LksjM WjcicIN3CxwPLu2fb01FjYhFdqcL7QpCyqOQfE85V3UF1CbjUlTKytZcKsIYlfMzhYZ4jEVrT VAcJnsc57ZsxsWtj+EGJA1x//VGSzlIsrJWH1z8jfMy75Qe4Ck33g371aKu7aC/6uBQBMqcm7 3HUpIsGrtw== X-Spam-Status: No, score=-100.6 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2020 09:15:34 -0000 On Nov 7 10:19, Ken Brown via Cygwin-developers wrote: > Hi Corinna, > > This is a followup to your question on IRC about why fhandler_fifo is so > big. The main reason is the pipe_name_buf member, which occupies 96 bytes > and stores the Windows named pipe name. > > There's a similar need to store the pipe name for the fhandler_socket_unix > class. In that case you used pc.{set,get}_nt_native_path. But the latter > is already in use in the fhandler_fifo case, so I can't use that. I see > several possible ways to proceed: > > 0. Do nothing and live with fhandler_fifo being big (736 bytes on 64-bit). As I wrote on IRC, it's not that bad. Trying to keep the size of fhandlers low is probably a bit old-fashioned anyway. 32 bit trauma :) Corinna