Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

This system will self-destruct in five minutes.


programming / comp.lang.tcl / Re: huddle : Is it possible to gain in performance ?

SubjectAuthor
* huddle : Is it possible to gain in performance ?Nicolas Robert
`* Re: huddle : Is it possible to gain in performance ?Christian Gollwitzer
 `- Re: huddle : Is it possible to gain in performance ?Nicolas Robert

1
Subject: huddle : Is it possible to gain in performance ?
From: Nicolas Robert
Newsgroups: comp.lang.tcl
Date: Wed, 27 Apr 2022 18:00 UTC
X-Received: by 2002:a05:620a:2946:b0:69e:7d37:2229 with SMTP id n6-20020a05620a294600b0069e7d372229mr17149053qkp.604.1651082452976;
Wed, 27 Apr 2022 11:00:52 -0700 (PDT)
X-Received: by 2002:a05:6808:1388:b0:325:217d:1ed1 with SMTP id
c8-20020a056808138800b00325217d1ed1mr8474348oiw.150.1651082452724; Wed, 27
Apr 2022 11:00:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 27 Apr 2022 11:00:52 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=93.2.241.29; posting-account=12Ku7QoAAABZfwpOT4Ksf001bDFF99F1
NNTP-Posting-Host: 93.2.241.29
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <33e93578-2129-4d36-ab5d-c8246408b1adn@googlegroups.com>
Subject: huddle : Is it possible to gain in performance ?
From: nicolasr...@gmail.com (Nicolas Robert)
Injection-Date: Wed, 27 Apr 2022 18:00:52 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
Hello,

I'm using 'huddle' for my package. I need advice from people who use it (or not).
In my case, it’s this procedure 'huddle::jsondump' https://github.com/tcltk/tcllib/blob/e527bde7c0aa16954111050d84547b33caba519a/modules/yaml/huddle.tcl#L482 that would require to be optimized.

Do you think it is possible to modify this proc to gain performance, or it is not possible ?

First in pure TCL and maybe in a second step by adding a function in C/C++?

Thanks

Nicolas


Subject: Re: huddle : Is it possible to gain in performance ?
From: Christian Gollwitzer
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 27 Apr 2022 18:22 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: aurio...@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: huddle : Is it possible to gain in performance ?
Date: Wed, 27 Apr 2022 20:22:07 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <t4c1kf$saq$1@dont-email.me>
References: <33e93578-2129-4d36-ab5d-c8246408b1adn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Apr 2022 18:22:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f4845a926967b45b203154ec9b1f5573";
logging-data="29018"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Xsb/Dw5Ps9VL0rd8H5MPULhoZpG33Uh0="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.8.1
Cancel-Lock: sha1:OKjiiRU79gWF3Gsj4KvV+lZidsw=
In-Reply-To: <33e93578-2129-4d36-ab5d-c8246408b1adn@googlegroups.com>
View all headers
Am 27.04.22 um 20:00 schrieb Nicolas Robert:
Hello,

I'm using 'huddle' for my package. I need advice from people who use it (or not).
In my case, it’s this procedure 'huddle::jsondump' https://github.com/tcltk/tcllib/blob/e527bde7c0aa16954111050d84547b33caba519a/modules/yaml/huddle.tcl#L482 that would require to be optimized.

Do you think it is possible to modify this proc to gain performance, or it is not possible ?

First in pure TCL and maybe in a second step by adding a function in C/C++?


If you need better performance, try rl_json - it is an extension qwith good performance and a good model for storing typed data.

Christian


Subject: Re: huddle : Is it possible to gain in performance ?
From: Nicolas Robert
Newsgroups: comp.lang.tcl
Date: Wed, 27 Apr 2022 18:38 UTC
References: 1 2
X-Received: by 2002:a0c:8e0b:0:b0:435:1779:7b22 with SMTP id v11-20020a0c8e0b000000b0043517797b22mr21197757qvb.63.1651084715507;
Wed, 27 Apr 2022 11:38:35 -0700 (PDT)
X-Received: by 2002:a05:6871:206:b0:e9:1f61:af76 with SMTP id
t6-20020a056871020600b000e91f61af76mr9279029oad.238.1651084715243; Wed, 27
Apr 2022 11:38:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 27 Apr 2022 11:38:35 -0700 (PDT)
In-Reply-To: <t4c1kf$saq$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=93.2.241.29; posting-account=12Ku7QoAAABZfwpOT4Ksf001bDFF99F1
NNTP-Posting-Host: 93.2.241.29
References: <33e93578-2129-4d36-ab5d-c8246408b1adn@googlegroups.com> <t4c1kf$saq$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <890f37d4-0fa7-42d6-8bc3-924316bbb5d8n@googlegroups.com>
Subject: Re: huddle : Is it possible to gain in performance ?
From: nicolasr...@gmail.com (Nicolas Robert)
Injection-Date: Wed, 27 Apr 2022 18:38:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 25
View all headers
Le mercredi 27 avril 2022 à 20:22:11 UTC+2, Christian Gollwitzer a écrit :
Am 27.04.22 um 20:00 schrieb Nicolas Robert:
Hello,

I'm using 'huddle' for my package. I need advice from people who use it (or not).
In my case, it’s this procedure 'huddle::jsondump' https://github.com/tcltk/tcllib/blob/e527bde7c0aa16954111050d84547b33caba519a/modules/yaml/huddle.tcl#L482 that would require to be optimized.

Do you think it is possible to modify this proc to gain performance, or it is not possible ?

First in pure TCL and maybe in a second step by adding a function in C/C++?

If you need better performance, try rl_json - it is an extension qwith
good performance and a good model for storing typed data.

Christian

Ok I’ll look at this, but if you ever have a brilliant idea with 'huddle', I’m a buyer.

Nicolas


1
rocksolid light 0.7.2
clearneti2ptor