From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,444b7bed8230c305,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.190.99 with SMTP id gp3mr1824424pbc.1.1327169946687; Sat, 21 Jan 2012 10:19:06 -0800 (PST) Path: lh20ni208177pbb.0!nntp.google.com!news1.google.com!postnews.google.com!n6g2000vbz.googlegroups.com!not-for-mail From: Ada BRL Newsgroups: comp.lang.ada Subject: Efficiency and overhead: Ada.Containers.Vectors.vector versus array type Date: Sat, 21 Jan 2012 10:19:06 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 137.222.114.240 Mime-Version: 1.0 X-Trace: posting.google.com 1327169946 7051 127.0.0.1 (21 Jan 2012 18:19:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 21 Jan 2012 18:19:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n6g2000vbz.googlegroups.com; posting-host=137.222.114.240; posting-account=yig7mwoAAAAAcduNbH7Dpal1sjCSAijA User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKUARELSC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-01-21T10:19:06-08:00 List-Id: Hello everyone! I need some hints about Ada.Containers.Vectors.vector efficiency. I'm developing a multithreaded real time application in Ada. I need a "collection" of objects (every object has a lot of records like task objects, Gnat.Sockets and so on...); This collection is accessed several times during the execution. In the meantime I don't have to insert and delete any items during the execution, I just need to instantiate N object when the application starts and then the number of objects will remain the same throughout the execution. Since I know how many object will be inside the collection I thought to use, as the collection I need, the "array standard type". In the meanwhile the Ada.Containers.Vectors.vector object is far more practical, simple and has even more interesting and useful functions like iterators and so on. For this reason, since I don't have any experience in Ada, I ask you all what can you suggest me to use. If there is no such difference in efficiency/overhead between array types and Ada.Containers.Vectors.vector I'll definitely use the latter. Thank you so much!