The file vector.cc creates a few Vector objects, and performs operations on them. One of the following four transformations can be used to make the code compilable:
Command-line:
$ codeboost -sophus-stubs -user-rules Vector.h > Vector-boost.h
$ codeboost --sophus --user-rules -l Vector.h vector.cc > vector-stub.cc
Command-line:
$ codeboost --sophus --user-rules -l Vector.h -t mutify vector.cc > vector-mutify.cc
Command-line:
$ codeboost --sophus --user-rules -l Vector.h -t apply-user-rules apply-user-rules='--no-bottomupr' -t mutify -t inline vector.cc > vector-map.cc
Command-line:
$ codeboost --sophus --user-rules -l Vector.h -t apply-user-rules -t compose -t mutify -t inline vector.cc > vector-mapfusion.cc
Measurements were taken on an AMD Athlon XP 2200+ running Linux 2.4.20. Compiled with -O, using GCC 3.2.
| transformation | time | improvement factor | time reduction | output code |
| stubs | 11.88s | 1.00 | 0.0% | vector-stub.cc |
| mutify | 5.06s | 2.35 | 57.4% | vector-mutify.cc |
| map | 5.14s | 2.31 | 56.7% | vector-map.cc |
| map fusion | 3.04s | 3.91 | 74.4% | vector-mapfusion.cc |
| transformation | time | improvement factor | time reduction | output code |
| stubs | 217.3s | 1.00 | 0.0% | vector-stub.cc |
| mutify | 157.7s | 1.38 | 27.4% | vector-mutify.cc |
| map | 157.7s | 1.38 | 27.5% | vector-map.cc |
| map fusion | 32.0s | 6.79 | 85.3% | vector-mapfusion.cc |
Maintained by Otto Skrove Bagge.
Last updated May 9, 2003.