Re: Built-ins for hashes - keys, values and entries?

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Friday, June 13, 2008, 5:42:38 PM, Zemian Deng wrote:

> Hi list,
>
> Is there a reason not to add a "entries" to hashes built-in that's
> similar to java.util.Map#entrySet?
>
> AFAIK, looping over java.util.Map via entry set is much faster than
> looping a key set then retrieve value by each key on all items.

We just thought that it would complicate things for the template
authors (like even understanding the template for
not-really-programmers) while the speed gain is certainly totally
negligible, since we have a lot more "overhead" here. I mean, this is
a "scripting language" technically, so, well, you can imagine what
horrors are going on behind the scenes...

> -Zemian

-- 
Best regards,
 Daniel Dekany


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.