# Performance Issue - while using arrays

**URL:** <https://forum.kirupa.com/t/performance-issue-while-using-arrays/237805>\
**Category:** programming\
**Created:** [September 4, 2007, 5:17am UTC](https://forum.kirupa.com/t/performance-issue-while-using-arrays/237805 "2007-09-04T05:17:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnn123](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@nnn123](https://forum.kirupa.com/u/nnn123)\
**Post date:** [September 4, 2007, 5:17am UTC](https://forum.kirupa.com/t/performance-issue-while-using-arrays/237805/1 "2007-09-04T05:17:29Z")

</div>

Hi,

```
I am new to Flash Programming & developing simple game in Flash. 

In a game I am creating array holding duplicateMovieClips. It works fine when a size of array is small & holding around 50 to 100 movieclips but performance is slow down when array size exceeds 100 elements.

For the solution I am removing 25 elements once array size becomes 50 and so on but performance issue still there & swf not working smoothly. I think memory is still not released while removing elements from an array & resources remain allocated.

I have also used delete array() at the end to mark array for Garbage Collection.

Please help to solve this problem & run my game smoothly.

```

Thanks in Advance.
