From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Problems with xml-parse-string Date: Sat, 25 Sep 2010 00:01:50 +0200 Message-ID: References: <87vd5x7ty2.fsf@stupidchicken.com> <87vd5wo48a.fsf@stupidchicken.com> <8739t03q2g.fsf@stupidchicken.com> <87k4mb2mfu.fsf@stupidchicken.com> <87pqw3nm4y.fsf@stupidchicken.com> <87iq1v0yi2.fsf@stupidchicken.com> <87bp7nvt9j.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285365720 28542 80.91.229.12 (24 Sep 2010 22:02:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 22:02:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 25 00:01:58 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OzGL7-0001qb-O6 for ged-emacs-devel@m.gmane.org; Sat, 25 Sep 2010 00:01:58 +0200 Original-Received: from localhost ([127.0.0.1]:40923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzGL7-0007pu-4B for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 18:01:57 -0400 Original-Received: from [140.186.70.92] (port=59050 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzGL1-0007pn-Sy for emacs-devel@gnu.org; Fri, 24 Sep 2010 18:01:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzGL0-0005f6-Nr for emacs-devel@gnu.org; Fri, 24 Sep 2010 18:01:51 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:45075) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzGL0-0005f2-LB for emacs-devel@gnu.org; Fri, 24 Sep 2010 18:01:50 -0400 Original-Received: from dyn.83-228-173-129.dsl.vtx.ch ([83.228.173.129]:12950 helo=fmsmemgm.homelinux.net) by fencepost.gnu.org with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OzGL0-0002Hm-2A; Fri, 24 Sep 2010 18:01:50 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 107356611D; Sat, 25 Sep 2010 00:01:50 +0200 (CEST) In-Reply-To: <87bp7nvt9j.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 24 Sep 2010 15:25:12 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130809 Archived-At: >>> Doesn't seem too horrific. >> It's not too horrific. It's just that it's not as nice as it could >> be. And if you deal with these structures all the time, you get to >> recreate the (and (consp data) (not (eq (car data) '@))) in every >> single branch of every single little trivial function you write (and >> read). > That's why you use `xml-node-children' and so forth. There's also the performance impact. Elisp is slow, so it would only work well if we push xml-node-children and friends down to C in such a case. Stefan