Ticket #1875 (closed bug: fixed)
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
Serge
Change History
Note: See
TracTickets for help on using
tickets.
