Page 3 of 3

Re: Problem with ReceiveData

Posted: Tue Jun 04, 2019 5:40 pm
by msu
@Clyde:
In client 1 code, replace the line "b$[c] = a$" with "InsertItem (b$, a$)".
The code runs about 56 times slower!

Re: Problem with ReceiveData

Posted: Tue Jun 04, 2019 10:05 pm
by Clyde
Alright, this is really impressive. Thanks for sharing. It would be interesting if Andreas has an explanation, also the pro and cons of using this or the other way.

Re: Problem with ReceiveData

Posted: Wed Jun 05, 2019 4:35 pm
by airsoftsoftwair
msu wrote: Tue Jun 04, 2019 5:40 pm @Clyde:
In client 1 code, replace the line "b$[c] = a$" with "InsertItem (b$, a$)".
The code runs about 56 times slower!
Yes, the table library is slow. Manually keeping track of tables is much faster...

Re: Problem with ReceiveData

Posted: Wed Jun 05, 2019 7:01 pm
by Bugala
hmm.. I thought that usually by using a function it would be faster to do.

Wasnt it so that using x=1+2 is slower than x = add(1,2)?

Re: Problem with ReceiveData

Posted: Wed Jun 12, 2019 1:51 pm
by SamuraiCrow
Bugala wrote: Wed Jun 05, 2019 7:01 pm hmm.. I thought that usually by using a function it would be faster to do.

Wasnt it so that using x=1+2 is slower than x = add(1,2)?
No. There's calling overhead with needless function calls.