Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1415

Move away from expensive enum switch

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • Awaiting Volunteers
    • None
    • None
    • Low

      We use enums and enum switch extensively. These constructs generate many, many additional classes and bloat the code base unnecessarily.

      All cases where we are using enum-based switches for our XML parsers should be converted to use Java 7 String switch instead. The enum values shall be replaced with String constant fields, all enum switches converted to String switches, and all enum types removed from these classes. The net result should be a reduction by dozens if not hundreds of .class files, and possibly a measurable performance boost as well.

            Unassigned Unassigned
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: