Re: prefixes and namespaces?
- Posted by Jeremy Cowgar <jeremy at cowg?r.?om> Apr 25, 2008
- 696 views
Mike777 wrote: > > How do I get access to that? BTW, I think we were agreeing. > Oh! I read your message wrong. I thought you were saying map in euphoria was 5 times slower. Re-read, my bad. Your saying my benchmark showed htable 5 times slower than map, not map 5 times slower. Ok. How do you get map or how do you get the benchmark? The benchmark code for map is located in the message: http://www.openeuphoria.org/EUforum/m19908.html The benchmark for stable (faster than htable) can be found in that same message. The benchmark for htable, as found in htable.zip, is slightly different than the one for stable. It is:
include htables.e integer n sequence t object v n = 10000 t = new(1) for i = 1 to n do t = make(t, sprintf("key%d", {i}), sprintf("value%d", {i})) end for for i = 1 to n do v = fetch(t, sprintf("key%d", {i})) if equal(v, sprintf("value%d", {i})) = 0 then puts(1, "Invalid find\n") abort(1) end if end for
To get the new Euphoria, you need to use svn: svn co http://rapideuphoria.svn.sourceforge.net/svnroot/rapideuphoria/trunk euphoria-4.0 -- Jeremy Cowgar http://jeremy.cowgar.com