-
[RESOLVED] Software got slower
Hello All,
I am using so many variables stored as arrays, so after loading data into the arrays, the programme was getting slower.
The data were loaded from external text file using (loadVariables). After loading the data into the arrays, those variables from the text file which initially loaded on (_root) deleted using (delete) keyword.
Any tips on how to enhance the performance of this software?
Thanks!
-
Senior Member
I am using so many variables stored as arrays, so after loading data into the arrays, the programme was getting slower.... Any tips on how to enhance the performance of this software?
Yes, use less variables
-
Originally Posted by realMakc
Yes, use less variables
I am talking programming, and you trying to be Mr. funny, I don't know.
Those many variables are needed to store data (input data), which are need for the programme.
Last edited by Dr_flash; 03-07-2017 at 08:41 AM.
-
Senior Member
There is nothing funny about that. Think about this: you can lift maybe 2 kg with no problem whatsoever, then 50 kg is somewhat heavy, but still doable. And then there is 500 kg, which is impossible for you to lift, so you can't really lift it off the ground. So the advice I give you is do not put too much weight on it. And you are like, "ha ha you're funny, but I still need to lift 500kg, your advice does not apply"
-
maybs you supply us the files, maybs we do it better
-
Originally Posted by realMakc
There is nothing funny about that. Think about this: you can lift maybe 2 kg with no problem whatsoever, then 50 kg is somewhat heavy, but still doable. And then there is 500 kg, which is impossible for you to lift, so you can't really lift it off the ground. So the advice I give you is do not put too much weight on it. And you are like, "ha ha you're funny, but I still need to lift 500kg, your advice does not apply"
Thank you for the advice!
-
Originally Posted by Dezoid
maybs you supply us the files, maybs we do it better
Hello,
Sorry, I can't supply the file. Thanks for understanding!
The loaded input data is like; Property vs. Date (Monthly), the property could be anything. Let's say for example; Temperature vs Date.
like;
Date Avg. Temp.(Degree C)
1/1/1970 25
1/2/1970 23
1/3/1970 22.5
.
.
.
1/1/2017 26
So from 1/1/1970 up to 1/1/2017 (47 years)
47 yrs*12 months = 564 Months
Therefore, there are 564 points as dates(Months) and 564 points as avg. temp.
The Months are stored in Array, and the avg. temp. points are stored in another Array.
This huge data make the soft. runs slowly. Any tips how to solve that? All the data are needed for analysis.
-
Why you not split into years and load as necessary.
-
Originally Posted by Dezoid
Why you not split into years and load as necessary.
Thank you!
-
Client Software Programmer
are you loading up many textfiles, or is all the data stored in 1 text file
if it is 1 textfile for all the data than bad idea its going to be slow.
if it is many text files, is your data going to be in a scrollpane?
if its a scrollpane let me know. we can load and unload a certain range of files as you scroll up and down
Last edited by AS3.0; 03-08-2017 at 11:52 PM.
-
perhap maybe a datagrid would be better than scrollpane,https://www.kirupa.com/developer/flash8/datagrid.htm
he did say was one file, we all know that bad if big big
maybe best using xml too , like so,
can do it many ways with xml, this will be called 1970.xml
Code:
<?xml version='1.0' encoding='utf-8'?>
<year>
<month avgTemp="10" date="01/01/1970"></month>
<month avgTemp="12" date="01/02/1970"></month>
<month avgTemp="14" date="01/03/1970"></month>
<month avgTemp="16" date="01/04/1970"></month>
<month avgTemp="19" date="01/05/1970"></month>
<month avgTemp="21" date="01/06/1970"></month>
<month avgTemp="21" date="01/07/1970"></month>
<month avgTemp="22" date="01/08/1970"></month>
<month avgTemp="23" date="01/09/1970"></month>
<month avgTemp="19" date="01/10/1970"></month>
<month avgTemp="15" date="01/11/1970"></month>
<month avgTemp="14" date="01/12/1970"></month>
</year>
or
Code:
<?xml version='1.0' encoding='utf-8'?>
<year>
<month>
<avgTemp>10</avgTemp>
<date>01/01/1970</date>
</month>
<month>
<avgTemp>12</avgTemp>
<date>01/02/1970</date>
</month>
<month>
<avgTemp>14</avgTemp>
<date>01/03/1970</date>
</month>
<month>
<avgTemp>16</avgTemp>
<date>01/04/1970</date>
</month>
<month>
<avgTemp>19</avgTemp>
<date>01/05/1970</date>
</month>
<month>
<avgTemp>21</avgTemp>
<date>01/06/1970</date>
</month>
<month>
<avgTemp>21</avgTemp>
<date>01/07/1970</date>
</month>
<month>
<avgTemp>22</avgTemp>
<date>01/08/1970</date>
</month>
<month>
<avgTemp>23</avgTemp>
<date>01/09/1970</date>
</month>
<month>
<avgTemp>19</avgTemp>
<date>01/10/1970</date>
</month>
<month>
<avgTemp>15</avgTemp>
<date>01/11/1970</date>
</month>
<month>
<avgTemp>14</avgTemp>
<date>01/12/1970</date>
</month>
</year>
can make many variouos way of the xml, simple or complex, many tutorials on how to load and use
scrollpane is easy too but not work with muli data like datagrid, anyway, nobody know how you doing it, perhap you are making graphs from datas
Last edited by Dezoid; 03-09-2017 at 03:53 AM.
-
Originally Posted by Alloy Bacon
are you loading up many textfiles, or is all the data stored in 1 text file
if it is 1 textfile for all the data than bad idea its going to be slow.
if it is many text files, is your data going to be in a scrollpane?
if its a scrollpane let me know. we can load and unload a certain range of files as you scroll up and down
I have used one and multi-files; but the results is the same, soft. runs slowly. As all the loaded data are store in one array for property-1 and another array for property-2.
I will give your suggestion (scroll pane) a try. Thanks!
-
Originally Posted by Dezoid
perhap maybe a datagrid would be better than scrollpane, https://www.kirupa.com/developer/flash8/datagrid.htm
he did say was one file, we all know that bad if big big
maybe best using xml too , like so,
can do it many ways with xml, this will be called 1970.xml
Code:
<?xml version='1.0' encoding='utf-8'?>
<year>
<month avgTemp="10" date="01/01/1970"></month>
<month avgTemp="12" date="01/02/1970"></month>
<month avgTemp="14" date="01/03/1970"></month>
<month avgTemp="16" date="01/04/1970"></month>
<month avgTemp="19" date="01/05/1970"></month>
<month avgTemp="21" date="01/06/1970"></month>
<month avgTemp="21" date="01/07/1970"></month>
<month avgTemp="22" date="01/08/1970"></month>
<month avgTemp="23" date="01/09/1970"></month>
<month avgTemp="19" date="01/10/1970"></month>
<month avgTemp="15" date="01/11/1970"></month>
<month avgTemp="14" date="01/12/1970"></month>
</year>
or
Code:
<?xml version='1.0' encoding='utf-8'?>
<year>
<month>
<avgTemp>10</avgTemp>
<date>01/01/1970</date>
</month>
<month>
<avgTemp>12</avgTemp>
<date>01/02/1970</date>
</month>
<month>
<avgTemp>14</avgTemp>
<date>01/03/1970</date>
</month>
<month>
<avgTemp>16</avgTemp>
<date>01/04/1970</date>
</month>
<month>
<avgTemp>19</avgTemp>
<date>01/05/1970</date>
</month>
<month>
<avgTemp>21</avgTemp>
<date>01/06/1970</date>
</month>
<month>
<avgTemp>21</avgTemp>
<date>01/07/1970</date>
</month>
<month>
<avgTemp>22</avgTemp>
<date>01/08/1970</date>
</month>
<month>
<avgTemp>23</avgTemp>
<date>01/09/1970</date>
</month>
<month>
<avgTemp>19</avgTemp>
<date>01/10/1970</date>
</month>
<month>
<avgTemp>15</avgTemp>
<date>01/11/1970</date>
</month>
<month>
<avgTemp>14</avgTemp>
<date>01/12/1970</date>
</month>
</year>
can make many variouos way of the xml, simple or complex, many tutorials on how to load and use
scrollpane is easy too but not work with muli data like datagrid, anyway, nobody know how you doing it, perhap you are making graphs from datas
Hi,
I have never used xml files before. I don't know they work. I will see if datagrid can be utilized.
And you were right about the graphs, the soft. produces graphs out of the loaded data.
Thanks!
-
Client Software Programmer
Yeah try that out, I mean it can't be slower than the graph apple uses to load up your app sales
-
Why you not show him how yoy did with you own scrollpane allloy
Maybe you uppingload the fla and text var files and make the graphs.
Show how you do give all the knowlidge. Ba dum tss
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|