Thanks for the guidance and examples, Eric. -- Mark
On May 18, 6:21 pm, Eric Shulman <[email protected]> wrote: > > Does anyone know if there are performance issues with using recursion > > under javascript? The index for my massive "Definitive Javascript" > > doesn't mention recursion, but I vaguely feel like I read something > > somewhere. > > Regardless of the language, recursion can *always* run into > performance issues, depending upon the kind of data it is working > with. > > Even so, recursion in javascript seems to perform reasonably well. > Two examples from TiddlyTools: > > http://www.TiddlyTools.com/#HTMLFormattingPlugin > recursively walks the DOM tree to render wiki content within HTML > text nodes > > http://www.TiddlyTools.com/#ShowObject > recursively walks an arbitrary JS object to display all properties > see section starting with: "if (typeof($1)!='undefined')" > note: uses 'arguments.callee' for **anonymous recursion** > > enjoy, > -e --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWikiDev?hl=en -~----------~----~----~----~------~----~------~--~---
