Re: Performance of list / array / dict compared

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Performance of list / array / dict compared
De : rodiongork (at) *nospam* github.com (RodionGork)
Groupes : comp.lang.tcl
Date : 18. Aug 2024, 15:08:46
Autres entêtes
Organisation : novaBBS
Message-ID : <dd2b683b86c31d62c2fc9919ffa6179e@www.novabbs.com>
References : 1 2
User-Agent : Rocksolid Light
Python has the equivalent of Lists, Arrays, and Dictionaries -- which
did you use?
in Python the plain list is used (well, these details could be quickly
seen by the link to sources above) - as I mentioned in TCL I decided to
try other structures only because I thought list implementation could be
not very effective internally, e.g. due to historical reasons...

For calculation, C or Golang would likely be best.
Not necessarily, any language compiled to native codes will do
similarly. Moreover, there is optimized version of Python - and there is
JIT-version for Lua, while Java uses JIT anyway, so they results are
very close:
Java: 1.60
Pypy3: 7.31
LuaJit: 2.18
Perhaps someone may one day try to use JIT in TCL also (perhaps even
borrowing it from Lua may work)
--
to email me substitute github with gmail please

Date Sujet#  Auteur
18 Aug 24 * Performance of list / array / dict compared5RodionGork
18 Aug 24 +* Re: Performance of list / array / dict compared3RodionGork
18 Aug 24 i`* Re: Performance of list / array / dict compared2Rich
19 Aug 24 i `- Re: Performance of list / array / dict compared1gustafn
18 Aug 24 `- Re: Performance of list / array / dict compared1Rich

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal