Search results

  1. E

    quick C++ STL questions..

    Yeah, its not entirely scientific, how I have done the tests.. however, for each configuration, I did run them a number of times to verify consistency and the results were nearly identical for each pass.. the latest test on x64/MinGW was showing (for example) 1.04 to 1.11 seconds for the last...
  2. E

    quick C++ STL questions..

    This is interesting. Installed Bloodshed 5.0 beta on WinXP x64.. the results leave both Visual's in the dust - very comparable to execution under Linux using native GCC. I tried Suse and the performance is almost identical (although the Linux versions in general are noticeably faster for...
  3. E

    How do you backup your system?

    Here is the exact procedure: Windows is installed on your primary disk. Install Linux on a separate partition and/or disk. Be sure to have Grub installed on one of your new Linux partitions. (I create a dedicated /boot partition for bootloader/kernel). After installation is complete...
  4. E

    How do you backup your system?

    There is another workaround if you don't want to mess with your Windows partitions.. The distro's I have been trying lately (Suse, Novell, RHAT) all let you choose where to put Grub - I just put it on the dedicated /boot partition of that Linux distribution.. then you can get a utility called...
  5. E

    quick C++ STL questions..

    Thanks, Nitro. I have added it to my list. Installed Novell Linux Desktop 9 - has different quirks compared to RedHat - almost wish I could combine the best of RHEL and NLD.. The only source code difference for this test was that the Windows versions use ctime, clock()...
  6. E

    quick C++ STL questions..

    You are probably right, but the code is exactly the same - in fact I took the code that was modified (very slightly) to work under KDevelop/g++, and put that back into VS2003 (complied fine with not a single change, of course) - still much slower than the gnu version - that is what I based the...
  7. E

    quick C++ STL questions..

    Thanks again. I do see the convenience of using vectors over C - which is why I am experimenting with them now - simple to implement, less prone to bugs, etc. Let's say I have four vectors - one each for OHLC.. they grow dynamically as the data grows - fine. Now where are you pushing your...
  8. E

    quick C++ STL questions..

    Thanks Spelunk, That's what I figured. I thought of doing it that way - but the problem is, with the custom Vector of a Vector, I can grow each internal Vector row dynamically with calculated data.. was hoping to use iterators to simplify/expedite the process of accessing/manipulating the...
  9. E

    quick C++ STL questions..

    Thanks Rufus. I will try it out on VS.
  10. E

    quick C++ STL questions..

    Firstly, I am a bit surprised that no-one was willing to give a helping hand with my simple coding question, given the level of expertise that permeates from the vast amount of 'code philosophizing' that takes place in other threads. No big deal, I will probably have to rethink how to structure...
  11. E

    Slippage and ER2

    Hi Fred, Can you elaborate more on this? When using Globex native stop orders, I can choose stop limit or stop market - and always thought it is the same type of native stop order offered through any other broker/platform.. and therefore will be filled in the same manner regardless of...
  12. E

    Slippage and ER2

    For me, Globex native 'stop market' orders fill at 0.0 to 0.1 slippage (no slippage to one tick slippage) most of the time - however I have experienced bigger slippage when a small truckload of contracts are gobbled up at one time - 0.4 to 0.5 (4 to 5 ticks) under these conditions.. my worst was...
  13. E

    Dell Restore CD's

    You might encounter some difficulty using a Windows operating system disk that was packaged with another Dell computer, although I am not 100% sure. I just reloaded a Dell with the supplied Windows disk (not the restore disk) and no activation was required; it might be designed to work only...
  14. E

    quick C++ STL questions..

    Thanks, nono - I will certainly investigate Python when time is available. For now, I am going to try to keep pushing on with C/C++. Another quick STL question if someone has a second. Using the <i>min_element</i> algorithm is easy in the following case: vector< double> test...
  15. E

    quick C++ STL questions..

    Cool, thanks. Seems that 3.5 is the latest. http://www.microsoft.com/windowsserversystem/sfu/default.mspx strsep seems to be just fine, except that you have to check for empty string; surely a negligible performance difference:
  16. E

    quick C++ STL questions..

    lnt.reserve(15); now its 3 seconds.. yes, i'm pretty happy. (already had bardata.reserve(55000);) have to learn how to count the lines in the file and use that variable instead of 55000...
  17. E

    quick C++ STL questions..

    sorry, 5 seconds (after pushing onto vectors) - still much faster. 2 is without the pushes. 5 is still significantly better than 58..
  18. E

    quick C++ STL questions..

    error C3861: 'strtok_r': identifier not found, even with argument-dependent lookup ..msft always has to spoil all the fun. hope i can get vc71 compiler to work with it.. and if not mistaken, it seems that vc71 is not c99 compliant (unless i am missing something).. argh, there are so many...
  19. E

    quick C++ STL questions..

    holy! so much faster (now that its working) - reads the entire 50k line CSV file in 2 seconds!! it tooks about 58 seconds using strings and streams. This is probably a kludge, but it works: while(npt) { npt = strtok(NULL,tokseps); if(npt) { convertit =...
  20. E

    quick C++ STL questions..

    <i>strtod()</i> is not happy after the string is empty - the inner <i>while</i> loop completes the last iteration before breaking, and <i>strtod()</i> does not want an empty string, perhaps? I'll find it. Sorry for thinking out loud. It was easier using C++ strings and streams, but I...
Back
Top