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,70d59e24bec599dc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-23 13:06:25 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Profiling Gnat re. pthread_malloc, pthread_getspecific, system finalisation & tasking. References: X-Newsreader: Tom's custom newsreader Message-ID: <5F6Z6.118864$%i7.83650084@news1.rdc1.sfba.home.com> Date: Sat, 23 Jun 2001 20:06:25 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 993326785 24.7.82.199 (Sat, 23 Jun 2001 13:06:25 PDT) NNTP-Posting-Date: Sat, 23 Jun 2001 13:06:25 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:9064 Date: 2001-06-23T20:06:25+00:00 List-Id: > > (Mandrake 8.0) machine. I've used inlining, O3 optimisation, and > > disabled all run-time checks. > > By "using inlining" do you mean pragma Inline? Did you also specify -gnatn? A 10x difference in speed is unlikely to be caused by, or solved by, any of those things. > Somehow your Ada code does not correspond to your C++ code, regarding > threads. Likely. Though there may also be an optimization opportunity in making it *less* like the C. I'm thinking in particular of getting rid of malloc's by using local (stack) declarations instead. Ada programs typically use heap allocation a lot less.