tag:blogger.com,1999:blog-9446784.comments2023-10-29T01:09:04.496-07:00Trade-IdeasTI Mavenhttp://www.blogger.com/profile/09995690143891439831noreply@blogger.comBlogger468125tag:blogger.com,1999:blog-9446784.post-87262601816929091722016-11-07T22:15:03.135-08:002016-11-07T22:15:03.135-08:00In market the most important thing is to work acco...In market the most important thing is to work according to individual risk appetite and a proper entry and exit level with proper followup and updates.<a href="https://www.ways2capital.com/equity-tips.php" rel="nofollow">Equity tips</a><br />Anonymoushttps://www.blogger.com/profile/13988253962294260381noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-37168539620108399492016-10-24T19:36:26.173-07:002016-10-24T19:36:26.173-07:00Thanks for such a wonderful post.
binary brokersThanks for such a wonderful post.<br /><br /><i><b><a href="https://www.binarys.org/binary-options-brokers/" rel="nofollow">binary brokers</a></b></i>Humaun Kabirhttps://www.blogger.com/profile/07115372749293027201noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-73880181098361990202016-10-24T13:57:18.739-07:002016-10-24T13:57:18.739-07:00Some OTC and Pinks were basically good companies a...Some OTC and Pinks were basically good companies at one time, just going through a rough spell. Re-organization can bring them back.Anonymoushttps://www.blogger.com/profile/01473534464848427205noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-51352323884679362712016-09-26T21:54:11.739-07:002016-09-26T21:54:11.739-07:00Much of this formula is being applied around us no...Much of this formula is being applied around us now.<br />visit back: <a href="https://stockmarket-pro.blogspot.co.id/2016/09/3-key-strategies-to-use-when-trading.html" rel="nofollow"> 3 Key Strategies To Use When Trading Stock Options </a>Marissa Anastasyahttps://www.blogger.com/profile/01127993186655000336noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-31873192614959081882016-09-16T13:35:32.326-07:002016-09-16T13:35:32.326-07:00Hi Barry. How much money do you trade in order to...Hi Barry. How much money do you trade in order to make money in the situation you described in that you got in at $5.16 and got out at 5.25? I am guessing 5k. Is that correct?advisehttps://www.blogger.com/profile/12402540135313951063noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-29357750684322161422016-09-16T13:35:07.568-07:002016-09-16T13:35:07.568-07:00Hi Barry. How much money do you trade in order to...Hi Barry. How much money do you trade in order to make money in the situation you described in that you got in at $5.16 and got out at 5.25? I am guessing 5k. Is that correct?advisehttps://www.blogger.com/profile/12402540135313951063noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-17124019499670356992016-08-31T04:51:27.658-07:002016-08-31T04:51:27.658-07:00UPCOMING RESULTS: APOLLOHOSP, MAHANAGAR GAS, TV TO...UPCOMING RESULTS: APOLLOHOSP, MAHANAGAR GAS, TV TODAY NETWORK, ALLIED DIGITAL, ESSELPRO, KALINDEE, NAVKARCORP<br /><a href="https://www.linkedin.com/in/capitalstars-financial-services-46288b26" title="CapitalStars" rel="nofollow">CapitalStars</a> CapitalStars07https://www.blogger.com/profile/07269620674078045826noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-6574316435085469102016-08-30T05:17:25.521-07:002016-08-30T05:17:25.521-07:00TO GET FREE STOCK FUTURE TIPS , COMMODITY TIPS , E...TO GET FREE STOCK FUTURE TIPS , COMMODITY TIPS , EQUITY TIPS VISIT <a href="https://www.linkedin.com/in/capitalstars-financial-services-46288b26" title="CapitalStars" rel="nofollow">CapitalStars</a>CapitalStars07https://www.blogger.com/profile/07269620674078045826noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-74858270337751380062016-07-29T02:49:21.183-07:002016-07-29T02:49:21.183-07:00CapitalStars is a SEBI Registered, CRISIL-NSIC Ra...<a title=" CapitalStars " href="http://www.placementindia.com/job-recruiters/company-capitalstars-financial-research-459183/" rel="nofollow"> CapitalStars </a> is a SEBI Registered, CRISIL-NSIC Rated & ISO Certified Advisory Company Which is Provides trading tips on Equity, Commodity & Forex Market...<br />Anonymoushttps://www.blogger.com/profile/17261469414167780729noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-8703261796777708102016-07-18T00:58:50.328-07:002016-07-18T00:58:50.328-07:00I would like to say that this blog really convince...I would like to say that this blog really convinced me to do it! Thanks, very good post.<br /><a href="http://www.adjustproduction.com/san-francisco-video-production/" rel="nofollow">san francisco video production</a><br />Anonymoushttps://www.blogger.com/profile/06736251503579482269noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-85991955850529510482016-06-20T21:17:52.912-07:002016-06-20T21:17:52.912-07:00I love the cheap stuff. I never look at anything o...I love the cheap stuff. I never look at anything over $10, and all my scans have $10 as a max price. That's why I would like to see a filter for number of trades on the day. Helps filter out promo manipulation, IMHO.<br /><br />Great job as always Barrie....<br /><br />stewAnonymoushttps://www.blogger.com/profile/01473534464848427205noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-4061502752700875372016-06-07T19:03:58.985-07:002016-06-07T19:03:58.985-07:00Have a safe trip Barrie.....
stewHave a safe trip Barrie.....<br /><br />stewAnonymoushttps://www.blogger.com/profile/01473534464848427205noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-9474072793540790572016-04-16T05:42:33.224-07:002016-04-16T05:42:33.224-07:00Elliot, I think that the typical implementation of...Elliot, I think that the typical implementation of vector, when an increase in size is needed, adds 50% of the current size. For example, if a vector currently had space allocated for 100 elements, and the 101st element was inserted, it would allocate a new block with space for 150 elements.Anonymoushttps://www.blogger.com/profile/11926392516439687552noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-1425458724533550242016-04-12T13:38:25.735-07:002016-04-12T13:38:25.735-07:00I'm a bit of a C++ novice, but is g++ smart en...I'm a bit of a C++ novice, but is g++ smart enough to figure out that it's going to insert <i>count</i> objects and therefore it should start by allocating a vector of that size? That would explain quite a bit of the behavior, including linked lists being faster when compiled without optimization.Defenestratorhttps://www.blogger.com/profile/04131774846520702665noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-35361533621565498122016-04-08T23:44:12.803-07:002016-04-08T23:44:12.803-07:00I hacked my hack https://waltsgeekblog.quora.com/V...I hacked my hack https://waltsgeekblog.quora.com/Vector-vs-linked-list-test-code-Part-2 . I changed the key type of the various containers from the primitive type 'int' to my not-of-any-pratical-use class 'Int', which has its member functions in a separate compilation unit. With this code, linked lists handily beat vectors (with optimization enabled). But there is a new mystery -- std::list and std::vector now beat the counterparts I hand-rolled that don't use heap allocation.Anonymoushttps://www.blogger.com/profile/11926392516439687552noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-41429227923647347382016-04-07T07:09:58.008-07:002016-04-07T07:09:58.008-07:00Sometimes I do my own memory allocation, similar t...Sometimes I do my own memory allocation, similar to what Walt showed. Back in the day, using Delphi on Windows to run a server, this was <b>essential</b>. <br /><br />At first it looked like the server code had a memory leak. On closer inspection the problem was actually memory fragmentation. For some classes I replaced Delphi's standard memory allocation with my own. That trick saved us a lot of memory and made the code go a lot faster.<br /><br />(Actually, at one time there was a real memory leak, too. The memory leak and the memory fragmentation reinforced each other. Having both of these issues at once made things worse than the two separate problems added together. I did a lot of measuring back then.)<br /><br />With g++ and Linux I don't see such a clear improvement. The modern g++ memory manager is smarter about threads than Delphi was. g++ does a good job, but it's hard to measure. Mostly the g++ memory manager can avoid waiting on mutexes, but not always. The details are completely chaotic in all but the simplest multi-threaded programs.<br /><br />I'll agree with what Walt Karas said about heap allocation. It often can be expensive. But that's not explaining the factor of 90 to 100x speedup that we're seeing here.Philip Smolenhttps://www.blogger.com/profile/06159443204723765728noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-37010555847599190372016-04-07T04:13:27.368-07:002016-04-07T04:13:27.368-07:00It would be interesting to see what the results of...It would be interesting to see what the results of this test would be with virtual memory disabled.Anonymoushttps://www.blogger.com/profile/11926392516439687552noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-89173557123625400292016-04-05T20:19:12.931-07:002016-04-05T20:19:12.931-07:00I hacked on your code some ( https://waltsgeekblog...I hacked on your code some ( https://waltsgeekblog.quora.com/Vector-vs-linked-list-test-code ). I tried to eliminate the factor of heap allocation, but it was less of a factor than I expected. I saw more like a 3x advantage for vectors. However, linked lists are faster when you compile with no optimization, so perhaps it's possible the optimization is removing code it shouldn't in order for the test to be valid.<br /><br />(Fortunately, if you follow the link and cut-n-paste the code, the line numbers seem to magically disappear, at least when you paste it into vi on linux.)Anonymoushttps://www.blogger.com/profile/11926392516439687552noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-76232098075143311472016-04-04T10:53:37.918-07:002016-04-04T10:53:37.918-07:00The "a pair of vectors" is an interestin...The "a pair of vectors" is an interesting idea. It reminds me of "the good ole days." That's how we made trees and lists and (pre-Visual) BASIC. Funny how these old ideas often resurface. Philip Smolenhttps://www.blogger.com/profile/06159443204723765728noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-31169955878311149942016-04-04T10:50:34.523-07:002016-04-04T10:50:34.523-07:00I hadn't looked at std::chrono.
There is so...I hadn't looked at std::chrono. <br /><br />There is some good stuff in C++11. It took some warming up to, but I now use lambda expressions and the "auto" keyword a lot. Of course, sometimes you get the new move constructors for free.<br /><br />But a lot of C++11 seems to be the standard catching up to my own C++ libraries. Things like threads, this high performance timer, and a keyword to quickly remove the default constructor or assignment operator.<br /><br />There are so many new features in C++11, and more after that. I read the documentation. I tried to pick out the useful stuff. That's no easy task. And when I already have a solution I like, there's little point in changing and retesting working code.Philip Smolenhttps://www.blogger.com/profile/06159443204723765728noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-64018135164338541632016-04-04T10:40:09.479-07:002016-04-04T10:40:09.479-07:00std::deque is simple enough. See my code changes ...std::deque is simple enough. See my code changes below.<br /><br />For this test it seems that std::vector takes about 10% - 15% more time than std::deque. std::list typically takes just over 100x times as long to run as std::deque. So in this case deque is the clear winner.<br /><br />[phil@daisy-mae-128k ~]$ diff -u DequeTest.C LinkedListTest.C<br />--- DequeTest.C 2016-04-04 10:25:39.529447452 -0700<br />+++ LinkedListTest.C 2016-04-03 12:40:03.670489465 -0700<br />@@ -1,6 +1,5 @@<br /> #include <br /> #include <br />-#include <br /> #include <br /> #include <br /> #include <br />@@ -68,15 +67,14 @@<br /> {<br /> const int64_t listTime = testOnce< std::list< int > >(count);<br /> const int64_t vectorTime = testOnce< std::vector< int > >(count);<br />- const int64_t dequeTime = testOnce< std::deque< int > >(count);<br /> // Print the results as soon as we have them so you know how much longer the<br /> // entire program will take. So you don't give up waiting!<br />- std::cout< 0; count++)<br /> testBothOnce(*count);<br /> }<br />[phil@daisy-mae-128k ~]$ ./a.out <br />n,list µs,vector µs, deque µs<br />1000,1869,228,263<br />10000,783114,17302,17535<br />20000,5488031,74604,69816<br />30000,13843658,168802,153290<br />40000,26066483,307051,273820<br />50000,42059246,470188,430424<br />60000,61858523,685584,625891<br />70000,85206597,956870,858067<br />80000,112523951,1239574,1104931<br />90000,143511099,1625506,1418160<br />100000,182675594,1966760,1762717<br />[phil@daisy-mae-128k ~]$ <br />Philip Smolenhttps://www.blogger.com/profile/06159443204723765728noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-12329776217687819692016-04-04T07:12:28.540-07:002016-04-04T07:12:28.540-07:00try std::dequetry std::dequeJohnhttps://www.blogger.com/profile/04430771386513336681noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-37242088801080641012016-04-04T05:59:14.656-07:002016-04-04T05:59:14.656-07:00for a better, more portable way to measure the tim...for a better, more portable way to measure the time spent, you can rely on std::chrono.<br />For the dates :<br />const std::chrono::high_resolution_clock::time_point start = std::chrono::high_resolution_clock::now();<br /><br />And for the duration :<br />return std::chrono::duration_cast< std::chrono::microseconds >( stop - start );<br /><br />Anonymoushttps://www.blogger.com/profile/07410784917227453900noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-48073486017236774962016-04-04T02:55:20.340-07:002016-04-04T02:55:20.340-07:00But what happens when you implement a list as a pa...But what happens when you implement a list as a pair of vectors, one for nodes, one for links/indices? This doesn't prove that lists are suboptimal, just that the conventional way of implementing them is.John Connorshttps://www.blogger.com/profile/01102954516659291106noreply@blogger.comtag:blogger.com,1999:blog-9446784.post-31483673317933725432015-12-17T15:19:01.900-08:002015-12-17T15:19:01.900-08:00Nice Video. Thanks Barrie.....Nice Video. Thanks Barrie.....Anonymoushttps://www.blogger.com/profile/06084384646015382891noreply@blogger.com