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!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 02 Jun 2006 15:19:05 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: task-safe hash table? References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Fri, 02 Jun 2006 15:19:05 -0500 NNTP-Posting-Host: 67.169.16.3 X-Trace: sv3-RJjEdV4E9InT8wWSbGnXMEBl7LaulPTcnf0wiF1aJSMCrfYxivQluK7mARiwY/xPMP0JmPn02PKeTgz!NPV7pd1FeaRQHrKq3LHtILLdXqynOmlIi4VXr2oX1NhDXSHDR9h4CmIzO3fp6A92y5KHMlD7y2Lh!ydYzw03MNOKw X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:4654 Date: 2006-06-02T15:19:05-05:00 List-Id: > > 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. Using -O3, it's 0.291347000 mics while a call to a regular function takes 0.001893000 microseconds.