# Lines between dots approach: efficiency question

**URL:** <https://forum.kirupa.com/t/lines-between-dots-approach-efficiency-question/210635>\
**Category:** Uncategorized\
**Created:** [December 20, 2006, 4:29pm UTC](https://forum.kirupa.com/t/lines-between-dots-approach-efficiency-question/210635 "2006-12-20T16:29:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slopps](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@slopps](https://forum.kirupa.com/u/slopps)\
**Post date:** [December 20, 2006, 4:29pm UTC](https://forum.kirupa.com/t/lines-between-dots-approach-efficiency-question/210635/1 "2006-12-20T16:29:24Z")

</div>

Hi all,  
I’ve got a question about the efficiency of two functions I wrote that do the same thing. I’m trying to figure out which one to use. The functions draw lines between a series of points, and continually redraw them as the points move.

The first function uses the drawing functions in flash.

The second function creates an empty movieclip and draws a short line in it, then uses trig to scale / rotate the movieClip to make it fit between the dots.

Both work, but as my program gets larger I’m wondering which function would calculate faster. Any thoughts?
