To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 5274
5273  |  5275
Subject: 
Re: executing instructions quickly
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 27 Jan 1999 23:29:05 GMT
Original-From: 
Max Davies <mdavies@CAM.#avoidspam#ORG>
Viewed: 
1083 times
  
Adam Oliver wrote:

My question : is it faster to write a procedure and use 6 calls, ie
move(1,100)    move(2,100)    move(3,100)    .....etc or write it as a
macro?

If your macro just calls the "move" routine it will make absolutely no
difference because your are in effect typing in the above anyway.

If your macro inserts the code for "move" inline rather than calling it it
will be only very slightly faster and at a cost of much more memory usage.

Typically the best approach is to ignore speed considerations (within
reason!) during initial development and then to address hot spots should
speed problems arise.  I have often seen software developers wasting tons
and tons of time developing complex code to run just as fast as possible
when the simple approach would have been just as good if not even better.

/Max



Message is in Reply To:
  executing instructions quickly
 
Just a quick question with regards to executing some instructions quickly. I'm using the pa7i9600.icb file to control a couple of mini SSCs, and I need to move 6 servos as close to simultaneously as I can. My question : is it faster to write a (...) (26 years ago, 27-Jan-99, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR