ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-core
tcl-core
Re: [TCLCORE] CFV TIP #348 - Substituted 'errorStack' / 'traceback'
by Alexandre Ferrieux other posts by this author
Oct 22 2009 11:37PM messages near this date
Re: [TCLCORE] CFV TIP #348 - Substituted 'errorStack' / 'traceback' | Re: [TCLCORE] CFV TIP #348 - Substituted 'errorStack' / 'traceback'
On 10/20/09, Alexandre Ferrieux <alexandre.ferrieux@[...].com>  wrote:
>  Hello,
> 
>   I have now updated the patch for TIP #348 (errorStack) at
> 
>   https://sourceforge.net/tracker/index.php?func=detail&aid=2868499&group_id=10894&atid=310
894
> 
>   to comply with Joe's suggestions [info errorstack ?interp?] + [dict
>   get $d -errorstack].
> 
>   Please review the performance measurements there (and code).
> 
>   TIA,
> 
>   -Alex
> 

Patch extended to allow measurement of the faster construction of
errorstack as a flat list.
Timing results at the same place:

https://sourceforge.net/tracker/index.php?func=detail&aid=2868499&group_id=10894&atid=310894

Also, an I tried the Lisp-like linked list approach (each cell being a
Tcl_Obj), only to discover that it didn't gain any speed. So the final
choice is the following:

     (1) [use==2]: [info errorstack] + options dicts + nested list, <5% slowdown

     (2a) [use==6]: [info errorstack] + options dicts + flat list, <2% slowdown

     (2b) [use==6]: [info errorstack] + postprocessed nested list, <2% slowdown

I am hereby asking you to argue on this choice, even if you don't have
time to review the code.

-Alex

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Andreas Kupries
Donal K. Fellows
Andreas Kupries
Joe English
Daniel A. Steffen
Alexandre Ferrieux
Joe English
Alexandre Ferrieux
Alexandre Ferrieux
Alexandre Ferrieux
Alexandre Ferrieux
Alexandre Ferrieux
Joe English
Alexandre Ferrieux
Alexandre Ferrieux
Joe English
Alexandre Ferrieux
Donald G Porter
Reinhard Max
Jeff Hobbs
Kevin Kenny
Alexandre Ferrieux
Jeff Hobbs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved