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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7d2c8b4487ef2145 X-Google-Attributes: gid103376,public From: steved@pacifier.com (Steve Doiel) Subject: Re: Ada versus Java - Tasking Date: 1997/01/17 Message-ID: <5bmop7$q1c@news.pacifier.com>#1/1 X-Deja-AN: 210318228 references: <01bc03ee$594dc520$829d6482@joy.ericsson.se> content-type: Text/Plain; charset=US-ASCII organization: Pacifier BBS, Vancouver, Wa. ((360) 693-0325) mime-version: 1.0 newsgroups: comp.lang.ada Date: 1997-01-17T00:00:00+00:00 List-Id: In article <01bc03ee$594dc520$829d6482@joy.ericsson.se>, ehsjony@ehs.ericsson.se says... > > >I have written a small producer-consumer type of program >both in Ada and Java. To my astonishment the Java code >executes faster than the Ada code. > [snip] > >I would be interested to understand this better if you have >any idea what is happening here. > >/jonas Have you tried setting the optimization level for GNAT to -O3 as well as turning off all runtime checks? I have seen this make a significant difference in the speed of Ada (and GNU C). Steve Doiel