| Deutsch English Français Italiano |
|
<dd2b683b86c31d62c2fc9919ffa6179e@www.novabbs.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: RodionGork <rodiongork@github.com> Newsgroups: comp.lang.tcl Subject: Re: Performance of list / array / dict compared Date: Sun, 18 Aug 2024 14:08:46 +0000 Organization: novaBBS Message-ID: <dd2b683b86c31d62c2fc9919ffa6179e@www.novabbs.com> References: <96ddc76b99ce6bf7397a5158fece845f@www.novabbs.com> <JFmwO.111824$KuXa.56578@fx44.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="3011025"; mail-complaints-to="usenet@i2pn2.org"; posting-account="FK20xSPHkh3K4vnO8u2oiUWWGFHCzgkK4jO78trwjP4"; User-Agent: Rocksolid Light X-Rslight-Site: $2y$10$4cuxqbV9nlHzDWvbqwrGrOnzPJxuTujFX9PwU20eIFP4o3y19en2y X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Posting-User: 32ecc5e38066f1efcacd4ff0a351d3cb52726446 Bytes: 1825 Lines: 23 > 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