Problem with ReceiveData

Discuss any general programming issues here
User avatar
msu
Posts: 44
Joined: Mon Jun 13, 2016 11:36 am
Location: Sinzig/Germany

Re: Problem with ReceiveData

Post by msu » 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!

User avatar
Clyde
Posts: 180
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Re: Problem with ReceiveData

Post by Clyde » Tue Jun 04, 2019 10:05 pm

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.
Currently using: Hollywood 7.1 with Windows IDE

User avatar
airsoftsoftwair
Posts: 3121
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Problem with ReceiveData

Post by airsoftsoftwair » Wed Jun 05, 2019 4:35 pm

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...

Bugala
Posts: 793
Joined: Sun Feb 14, 2010 7:11 pm

Re: Problem with ReceiveData

Post by Bugala » 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)?

SamuraiCrow
Posts: 222
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Problem with ReceiveData

Post by SamuraiCrow » Wed Jun 12, 2019 1:51 pm

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.

Post Reply