Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by postgresql.org (Postfix) with SMTP id 42EE2475914 for ; Fri, 12 Apr 2002 15:16:23 -0400 (EDT) Received: from psc.progress.com (HELO saturn.janwieck.net) (janwieck@192.233.92.200 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 12 Apr 2002 19:16:23 -0000 Received: (from wieck@localhost) by saturn.janwieck.net (8.11.2/8.11.2) id g3CJC1007563; Fri, 12 Apr 2002 15:12:01 -0400 From: Jan Wieck Message-Id: <200204121912.g3CJC1007563@saturn.janwieck.net> Subject: Re: Functions in Postgres In-Reply-To: <29462.1018637891@sss.pgh.pa.us> from Tom Lane at "Apr 12, 2002 02:58:11 pm" To: Tom Lane Date: Fri, 12 Apr 2002 15:12:01 -0400 (EDT) Cc: Jan Wieck , Peter Eisentraut , Gordon Clarke , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200204/164 X-Sequence-Number: 7428 Tom Lane wrote: > Jan Wieck writes: > > Tom Lane wrote: > >> Not since about Tcl 8.0. > > > You're right, not Tcl's fault. Noone changed PL/Tcl to use it > > though. It still does Tcl_CreateCommand(), which is the > > backward compatibility pure string interface wrapping > > technology. :-) > > I could be mistaken, but I thought Tcl would still reduce the function > text to bytecode behind-the-scenes. > > We are losing with unnecessary text conversions in a number of places in > pltcl, but I think it's just in parameter passing at pltcl function > entry/exit and calls to the special Tcl commands provided by pltcl. > If you're executing regular Tcl commands inside a pltcl function, > I think you still will get benefit from Tcl 8's speedups. Absolutely. It's only all the SPI_* crap and parameter/result conversion. Inside Tcl it's calm like in the center of a hurricane, the problem is just getting in and out... Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #