Monday, November 08, 2010 at 12:03 AM.

system.verbs.builtins.html.utilities.glossaryperformance

bundle { <<method 1, using a table
	local (name = "Bernie Dekoven", ct = 0);
	ticks = clock.ticks ();
	for i = 1 to 1000 {
		local (adrsubtable = @user.html.glossary [name]);
		if defined (adrsubtable^) {
			ct++}};
	dialog.alert (clock.ticks () - ticks)}
<<bundle <<method 2, using an outline
	<<local (name = "Bernie Dekoven", ct = 0)
	<<ticks = clock.ticks ()
	<<for i = 1 to 100
		<<target.set (@user.html.glossaryoutline)
		<<op.firstsummit ()
		<<op.findNext (name)
		<<target.clear ()
	<<dialog.alert (clock.ticks () - ticks)



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.