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,1742659b6aa943fb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.stueberl.de!newsfeed.vmunix.org!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: Tasking and wxWidgets Date: Tue, 29 Nov 2005 21:38:44 +0000 Organization: Pushface Message-ID: References: <1132913111.023558.255590@g14g2000cwa.googlegroups.com> <1133174279.467011.197600@g47g2000cwa.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1133300324 6802 62.49.19.209 (29 Nov 2005 21:38:44 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 29 Nov 2005 21:38:44 +0000 (UTC) Cancel-Lock: sha1:Mqby48E8rifI1NYSRq8M75FlfRY= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:6666 Date: 2005-11-29T21:38:44+00:00 List-Id: "Lucretia" writes: >> What would be acceptable? Using a Lock from the Booch �components >> (http://booch95.sourceforge.net) takes just under 20 us on a 1.5GHz >> Powerbook. > > I really doubt that the Booch components are written any differently > to mine. So, why would I need to? You thought that there might be a performance problem using locks. It seemed to me that you might be just being apprehensive without having any real evidence, and I produced a data point that showed that a particular implementation has a particular performance and asked whether that would be acceptable or not given your scenario. Of course your locks will be programmed in standard Ada, so their performance will likely be similar to the BCs. Whether you choose to use the BCs or not is entirely a matter for you. Whether you can afford to use locks at all depends on your chosen implementation's performance * the invocation rate. Might need to be quite clever about where the locks are applied .. 20 us isn't that fast, after all.