A big array or an array for each data column?

Discussion in 'App Development' started by GloriaBrown, Nov 28, 2013.

  1. For backtest, we can put all historical data in a big array, or having separate array to store start end start close column. Which method would let the backtest runs faster?
     
  2. Bob111

    Bob111

    :confused: array is array. I know only one type
     
  3. What are your hardware and software specs? What language or platform?

    If you would not like to share then why not try both and find out yourself?
     
  4. FXforex

    FXforex

    Sounds like you would be using a multidimensional array
     
  5. If you walk away for 6 months, then come back to read the code, could you understand it?

    Single or multi - the execution difference is probably negligible. It's not like it's mission critical or anything.

    Go for the more readable solution. The compiler will optimize away many of your human conveniences anyway.

    And if you're using C++, why aren't you using vectors from the STL? That code has been written by programmers magnitudes better in ability than any of us...

    Here's a tutorial -> C++ STL Vectors
     
  6. I use either Java or C#.

     
  7. It appears C# Collections are the equivalent to the STL
     
  8. I agree with blah....neither method would yield a result that is significantly better by any major factor, so it makes the most sense to stick with whatever is simplest.
     
  9. sounds good, thanks!