Dear All,

I did the measurements performs of my program inside a FoxBoard LX832.
I am really upset because the Fox is spend 7 seconds only to fill a vector with 
1000 positions.

Look the part of the code,(it's simplified to highlight the problem), that 
spend this time:

        float fSum = 0;
        float result;
        int plus = 0;

        for (int i=0;i<999;i++) {
                for (int j=0;j<928;j++) 
                {
                   fSum++;
                }
                
                m_pfConductivities[i]=fSum; //I HAVE SURE THAT THE PROBLEM IS 
THIS LINE  THAT TAKES SO MUCH TIME TO WRITE A VECTOR.
                plus += 928;

                }

If I replace THE VECTOR m_pfConductivities by a float variable ex: float 
result; It will takes only 16ms to processed this operation.

I really needs to storage the 999 results in any kind of array...
I think the problem is the time to access the memory...

Any suggestions?

p.s.: I tried to use int instead of float, I tried to use <vector> stl 
definitions, I tried to use memset, I tried to use float static...
I don't know how to solve...
Help me please...

--> Really thanks in advance..




Reply via email to