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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,229a77b902096176 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-11 07:02:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!proxad.net!wanadoo.fr!not-for-mail From: "Etienne Baudin" Newsgroups: comp.lang.ada Subject: Re: fastest data structure Date: Wed, 11 Dec 2002 16:02:52 +0100 Organization: Wanadoo, l'internet avec France Telecom Message-ID: References: NNTP-Posting-Host: atoulouse-105-1-14-166.abo.wanadoo.fr X-Trace: news-reader10.wanadoo.fr 1039618968 9707 80.15.138.166 (11 Dec 2002 15:02:48 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 11 Dec 2002 15:02:48 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:31693 Date: 2002-12-11T15:02:48+00:00 List-Id: Thanks for answers and the test program. I just modified My_type with a record like that type My_Type is record un : Integer; deux : Integer; trois : Integer; quatre : Integer; cinq : Integer; six : Integer; end record; and process: procedure Processing (Data : My_Type ) is value : Integer; pragma Volatile( Value ); begin value := data.un; value := data.un; value := data.un; value := data.un; end Processing; and I obtained some weird results : -- when I let the six components in My_type Time for array based loop is 0.00151 Time for linked list based loop is 0.00175 -- with only 3 components in the record Time for array based loop is 0.00109 Time for linked list based loop is 0.00112 --with only 1 component : Time for array based loop is 0.00050 Time for linked list based loop is 0.00047 The process is the same with the 3 test (always reading "un") , and the running time seems depend on the record size....?? Etienne Baudin