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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.150.18 with SMTP id y18mr14495535iod.107.1523120254945; Sat, 07 Apr 2018 09:57:34 -0700 (PDT) X-Received: by 2002:a9d:554b:: with SMTP id h11-v6mr1708569oti.12.1523120254800; Sat, 07 Apr 2018 09:57:34 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feed.usenet.farm!feeder4.feed.usenet.farm!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!k65-v6no842382ita.0!news-out.google.com!u64-v6ni1231itb.0!nntp.google.com!k65-v6no842379ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 7 Apr 2018 09:57:34 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.147.43.80; posting-account=lzqe5AoAAADHhp_gregSufVhvwu22fBS NNTP-Posting-Host: 68.147.43.80 References: <1aa8f536-250d-4bef-9392-4d936f916e5f@googlegroups.com> <9377f941-31d0-4260-818a-8e189aac8c19@googlegroups.com> <10e74e0c-119a-4d86-8a12-c05101f744f1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Large number of tasks slows down my program (using debian) - any fix? From: Brad Moore Injection-Date: Sat, 07 Apr 2018 16:57:34 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:51385 Date: 2018-04-07T09:57:34-07:00 List-Id: On Saturday, April 7, 2018 at 6:21:22 AM UTC-6, Simon Wright wrote: > Brad Moore writes: >=20 > > Another data point is the entry I submitted to the Computer Language > > Benchmark Games site for the Thread-Ring benchmark. >=20 > It doesn't do so well on a Macbook Pro (2.9 GHz Intel Core i5)! it used > about 147% cpu (i.e. the 2 physical cores) and took 8 minutes. >=20 > Much the same results with -gnatp -O2 as with the switches reported on > the website, not that I know whether they'd be appropriate for this > machine. (I see that the source code comments say "Note that this > version is compiled with full Ada checks enabled, and optimization > turned off", which isn't the case as reported). >=20 > This was with GCC 8.0.1 20180309, which required > Create_Lightweight_Thread's body to be seen before use. At one point, I believe the optimisation comment was true, but at some late= r point I must have sent in an update which changed the compile options, bu= t missed updating the comment. I should send in a new version with a fix to= the elaboration problem, since presumably at some point they will move to = a newer compiler version that has this check. Thanks, Brad