Ticket #1875 (closed bug: fixed)

Opened 6 years ago

Last modified 4 years ago

Compiling with -O is 30 times slower than with -Onot

Reported by: simonpj Owned by:
Priority: normal Milestone: 6.10.1
Component: Compiler Version: 6.8.1
Keywords: performance Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time performance bug Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This is a performance bug. In 6.8.1, compiling Serge's DoCon package, the "DoCon test" does build under -O and -O2, but it builds 30 times slower that under -Onot. As a result: install.txt recommends -Onot for "making" the test.

The following two points are not bugs, but maybe, need investigation, I do not know.

  • The size of the .a library for docon under -O remains almost 3/2 larger than in 6.6.1.
  • -O remains a little better than -O2 for `making' docon, -O2 does not increase the code performance for docon.

All this can be reproduced by downloading

 http://www.botik.ru/pub/local/Mechveliani/docon/2.11-pre/

Serge

Change History

Changed 6 years ago by simonpj

See also #783, #1136

Changed 5 years ago by igloo

  • keywords performance added

Changed 5 years ago by simonmar

  • type changed from bug to compile-time performance bug

Changed 5 years ago by igloo

  • milestone changed from 6.8.3 to 6.10.1

Changed 5 years ago by simonpj

  • status changed from new to closed
  • resolution set to fixed

Fixed at last

Wed Sep  3 13:02:28 BST 2008  simonpj@microsoft.com
  * Major change in compilation of instance declarations (fix Trac #955, #2328)

I'm assuming this is the same as #955, #2328.

Simon

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 4 years ago by simonmar

  • failure set to Compile-time performance bug
Note: See TracTickets for help on using tickets.