[amibroker] Re: Most Used Code

2009-06-26 Thread gmorlosky
How did you calculate the number of calls and time used of the code ? I would really like something to analyze my code to speed it up. Thanks --- In amibroker@yahoogroups.com, Dennis Brown se...@... wrote: On my system the most executed code and the one taking the most time is NumToStr().

Re: [amibroker] Re: Most Used Code

2009-06-26 Thread Prashanth
...@yahoo.com To: amibroker@yahoogroups.com Sent: Friday, June 26, 2009 19:11 Subject: [amibroker] Re: Most Used Code How did you calculate the number of calls and time used of the code ? I would really like something to analyze my code to speed it up. Thanks --- In amibroker@yahoogroups.com

[amibroker] Re: Most Used Code

2009-06-26 Thread gmorlosky
...@... To: amibroker@yahoogroups.com Sent: Friday, June 26, 2009 19:11 Subject: [amibroker] Re: Most Used Code How did you calculate the number of calls and time used of the code ? I would really like something to analyze my code to speed it up. Thanks --- In amibroker@yahoogroups.com

[amibroker] Re: Most Used Code

2009-06-25 Thread brian_z111
I didn't anticipate that I would ever get into processing/programming speed ... couldn't see why others were so into it but I am starting to get it. Trading in the whitespace (right of screen) is a reality that we all have to face up to sooner or later. Perhaps that is an argument for

Re: [amibroker] Re: Most Used Code

2009-06-25 Thread Dennis Brown
Brian, I create dynamic string arrays to populate pop up on-chart button arrays that allow you to select different data (by indicator name) for data ribbons. I know that is a mouthful. It is easy to demonstrate and hard to explain, but I will give it a try. If I click on the legend of a

[amibroker] Re: Most Used Code

2009-06-25 Thread Mike
If I understand you correctly, you could probably get rid of all of your NumToStr usages entirely by just concatenating the index suffix directly to the String prefix (e.g. VarName + index). The + operator will automatically convert the number to a string when the left hand side is a string.

Re: [amibroker] Re: Most Used Code

2009-06-25 Thread Dennis Brown
Mike, You are right, and I have been converting them over since I recently realized I could do this, so I may have even more conversions than are showing up in the timing at this point. I also would like to know, but have not tested to see if it is any faster. However for some, I