Long copying duration (a = b) (< V4.20 B6)

Share your advanced PureBasic knowledge/code with the community.
Ollivier
Enthusiast
Enthusiast
Posts: 281
Joined: Mon Jul 23, 2007 8:30 pm
Location: FR

Long copying duration (a = b) (< V4.20 B6)

Post by Ollivier »

Hi,

If you want to go faster when you copy a long variable to an other long variable (ex : a = b), you can replace this...

Code: Select all

a = b
...with this expression :

Code: Select all

a ! a + b
(speed *2 without debugger)

PS: I've PB V4.10 B2. I don't know if it's the same for others versions.
Last edited by Ollivier on Tue May 20, 2008 11:18 am, edited 1 time in total.
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Should be not valid anymore with 4.20 beta 6..
Ollivier
Enthusiast
Enthusiast
Posts: 281
Joined: Mon Jul 23, 2007 8:30 pm
Location: FR

Post by Ollivier »

Ok, Sorry!
Post Reply