Re: dict versus array of integers
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: dict versus array of integers

From: Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date: Tue Dec 06 2005 - 16:41:33 CET

Kevin Kenny <kennykb@acm.org> wrote:
> Andreas Leitgeb wrote:
>> Are dicts generally slower for this particular task, or
>> is my code triggering some object-string-conversion
>> corner case (with a numeric result being used as key)
>> that for some other reasons does not hit array ?
>
> A simpler explanation: We haven't done a lot of performance
> tuning yet for the new features in 8.5;

Good to know, it's just a temporary "alpha-stage" thing.

> "get it right before you make it faster"

Indeed, always a good plan :-)

> I'd expect dicts to be faster than arrays in this case once
> we get the performance tweaked.

And finally a good perspective :-)

Thanks!
Received on Sun Dec 11 13:53:52 2005