# Cpu usage

**URL:** <https://forum.kirupa.com/t/cpu-usage/99894>\
**Category:** Uncategorized\
**Created:** [January 23, 2004, 1:05pm UTC](https://forum.kirupa.com/t/cpu-usage/99894 "2004-01-23T13:05:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amaze](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@amaze](https://forum.kirupa.com/u/amaze)\
**Post date:** [January 23, 2004, 1:05pm UTC](https://forum.kirupa.com/t/cpu-usage/99894/1 "2004-01-23T13:05:03Z")

</div>

I’ve made a financial chart w/ Flash MX 2004 in which I load about 5.000 values of price indexes and 5.000 values of time stamps every 5 seconds.

I use a couple of Arrays to analyse these values and finally I draw the chart.

BUT, cpu usage is really high when I run the site in which the swf is embedded.  
I’ve tried from 4 different computers (3.0 GHz, 1GB RAM, etc.) and still the same.  
I know that it must be the cpu trying to write all the values in RAM and never deletes any.

How can I clear RAM each time my code finishes/starts?  
Is there a “clear buffer” way I can do that?

I’ve delimited the values to avoid the problem for now, but I would appreciate if someone can suggest something else.

Thank you.
