From: Colin McCabe Subject: Re: [PATCH] cld: use XDR for all messages Date: Wed, 13 Jan 2010 22:35:25 -0800 Message-ID: <436f52801001132235r3614f257p2128be5a389292d@mail.gmail.com> References: <1263135651-5407-1-git-send-email-cmccabe@alumni.cmu.edu> <4B4E60F8.7090304@garzik.org> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=m24viQqjE95k4opuahCX1+zra8ZlRXuIlKQw4mPNocY=; b=JkI7Qxiza92mjHaV42ojU0gr9btw6uRXt/KFuQTaTuxCPfEjFVDaLKonXGva1tO54h 8im0T9uM8v68tMa83B+hPUru5mRNDJsnzmM8mkI2STvC/+3EMph+JqX0SauE56G7xpx5 E42ganbjv6MEMjRzgzDzjUbkflTNAGkiXOEuM= In-Reply-To: <4B4E60F8.7090304@garzik.org> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jeff Garzik Cc: Project Hail List , Pete Zaitcev On Wed, Jan 13, 2010 at 4:10 PM, Jeff Garzik wrote: > OK, final review. Please fix these problems and resend (some of these > repeated from other emails; putting here to consolidate): > > * needs to build patch builds and runs against a fresh git repo clone + > ./autogen.sh + ./configure + make distcheck... Arg! Looks like it needs more work in the automake department. FWIW (which isn't much), ./autogen + ./configure + make did work for me. I probably had some previous build products hanging around in the system include paths. Also, your point about "make clean" is well taken. > * you increased the size of struct cldc_call_opts to over 256k! That is > unworkable in multi-thread programs, where struct cldc_call_opts may be > allocated on the stack -- as it is in most of the tool and test code using > libcldc. another solution, acceptable to usage within a thread (often > limited to 8k stacks) must be found. Good point. It could be solved by dynamically allocating the buffer, or by moving the statically allocated temporary buffer into cldc_session. Dynamic allocation is probably better, but it will require API users to free the buffer after use. > * it would be nice if this patch were separated out a bit, as there are a > lot of semi-related changes and cleanups mixed in amongst the XDR > conversion. I'm not 100% sure how much work this would be. I can take a look, at least... > * do we really need separate pkt_is_first() and pkt_is_last() ? I tend to > prefer a flags-based approach, where the code tests bits in a 'flags' > variable. I'll make it flag-based. > > * the stuff in cld_fmt.h is essentially global application identifier > namespace. as such, exporting functions like 'dump_buf' or 'opstr' may run > into trouble. suggest '__cld_' prefix, perhaps. Yeah, cld_fmt.c functions get linked into libcldc, so it's best to prefix them with "cldc_" sincerely, Colin