would be great to have a new optimization that combines multiple classes
into one. there is a commercial tool that claims it can do it:
http://www.s-cradle.com/english/products/sophiacompress_java/scj_operation.
html
(though i haven't tried it personally).
there are conditions where multiple classes can be safely combined into
one. for example, if class A which has a single instance (say, "main")
contains only one instance of class B, and there is no other instance of
class B, (and there aren't any name collisions), then the members of class
B can be "merged" into class A, and class B can be eliminated.
this optimization is particularly useful for mobile apps where jar size is
very important. it can help keep the jar small, and the code tidy, since
developers can add classes more liberally.
thank you for ProGuard,
barak
Eric Lafortune
None
None
Public
|
Date: 2008-05-22 17:20
|
|
Date: 2008-02-07 12:04
|
|
Date: 2008-02-04 17:41
|
|
Date: 2008-02-02 21:33
|
|
Date: 2008-01-31 19:02
|
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-12-14 23:27 | lafortune |
| close_date | - | 2008-12-14 23:27 | lafortune |
| assigned_to | nobody | 2008-01-31 19:02 | lafortune |
| priority | 5 | 2008-01-30 21:28 | barak_naveh |