Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3477

[perf] Review amount of byte [] arrays created

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3-next-M3
    • None
    • None

    Description

      instances of byte [] are created in:
      1) org.apache.myfaces.shared.util.StateUtils.getAsByteArray(Object, ExternalContext)
      2) org.apache.myfaces.shared.util.serial.DefaultSerialFactory.getObjectOutputStream
      3) writer.writeObject(object); in org.apache.myfaces.shared.util.StateUtils.getAsByteArray
      4) org.apache.myfaces.shared.util.StateUtils.encode(byte[])
      5) org.apache.myfaces.shared.util.serial.DefaultSerialFactory.getObjectInputStream(InputStream)
      6) org.apache.myfaces.shared.util.StateUtils.reconstruct(String, ExternalContext)

      those allocations are not performance problem; only in cumulative time are those methods #1 source of byte [] in myfaces - maybe can be some of them removed.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: