Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #4675
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Horizon68 <horizon@horizon.com> |
| Newsgroups | comp.programming.threads |
| Subject | About C++ and Delphi and FreePascal generic (template) style containers.. |
| Date | Sat, 13 Oct 2018 12:04:23 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 32 |
| Message-ID | <pptfjn$mth$5@dont-email.me> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sat, 13 Oct 2018 19:04:23 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="4d386253a4117af136f158a2e9a33403"; logging-data="23473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+079CPJLrWFRk0txE3gQd+qVLMaHNSi3A=" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
| Cancel-Lock | sha1:gT0566qePgey+UIDFCg8FwKXsyQ= |
| Content-Language | en-US |
| X-Mozilla-News-Host | news://news.eternal-september.org:119 |
| Xref | csiph.com comp.programming.threads:4675 |
Show key headers only | View raw
Hello.. About C++ and Delphi and FreePascal generic (template) style containers.. Generics.Collections of Delphi and FreePascal for generic (template) style containers that you can download from here: https://github.com/maciej-izak/generics.collections TList of Generics.Collections of Delphi and FreePascal is implemented the same as STL C++ Vectors: they are array-based. And since data structureS are the same then also performance should be comparable. So I've done a small test between Tlist of Generics.Collections of Delphi and FreePascal and C++ vector, it's an addition of 3000000 records of 16 byte length, in one loop, here is the results: Tlist time = 344ms Vector time = 339ms It seems they are the same, the test use only the function ( List.add , vector.push_back). STL vectors with the at() and Delphi TList of Generics.Collections of Delphi and FreePascal perform bounds checking. Thank you, Amine Moulay Ramdane.
Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread
About C++ and Delphi and FreePascal generic (template) style containers.. Horizon68 <horizon@horizon.com> - 2018-10-13 12:04 -0700
csiph-web