Problem with ReceiveData

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

Re: Problem with ReceiveData

Post by msu »

@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: 318
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Re: Problem with ReceiveData

Post 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.
Currently using: Hollywood 8 with Visual Studio Code and hw4vsc

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

Re: Problem with ReceiveData

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

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

Re: Problem with ReceiveData

Post 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)?

SamuraiCrow
Posts: 309
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Problem with ReceiveData

Post 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.
I'm on registered MorphOS using FlowStudio.

Post Reply