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-Thread: 103376,4cf1fd41f64f8f02 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news.glorb.com!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: task-safe hash table? Date: Sun, 04 Jun 2006 18:48:15 +0100 Organization: Pushface Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1149443294 3019 62.49.19.209 (4 Jun 2006 17:48:14 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 4 Jun 2006 17:48:14 +0000 (UTC) Cancel-Lock: sha1:HJeC2RnkedZzbVKkqHC9nMtukY4= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:4676 Date: 2006-06-04T18:48:15+01:00 List-Id: Stephen Leake writes: > tmoran@acm.org writes: > >>> > the overhead of making it Protected would probably kill the gain. >>> >>> What "overhead"? >> In a trivial single-tasking test program on my machine, a call to a >> Protected function compiled with Gnat 3.15p -O2 takes >> 0.304697000 mics while a call to a regular function takes >> 0.022779000 microseconds. > > Interesting. Please post the program; I'll run it with a later GNAT, > and if the results are still so bad, submit a bug report. I wouldn't have thought 0.3 microseconds was that bad?