Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4901731

IIOP serialization is slow for large objects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.4.2
    • Component/s: other-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      04
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Verified

      Backports

        Description

        Customer Problem Description:
        -------------------------------
        Given the structure:

             int iters = 100000;
             HashMap h = new HashMap();
             for (int i=0; i<iters; i++) {
               h.put(new String("Hello" + i), "Hi there" + i);
             }

        - Serialization of this under java.io takes 1.3s
        - Serialization of this using the WLS ORB (with some fixes) takes 6.7s to
        marshal and 2.3s to unmarshal. Since we use the JDK valuehandler in our ORB it doesn't seem that this can be a valuehandler problem but something more fundamental.
        - However serialization with the JDK 1.4.1_03 ORB takes 238s to marshal and
        an unbelievable 1600s to unmarshal.

        Attached is a testcase. Please uncomment the lines for ORB and comment
        it for java_io while testing the scenario with ORB.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                tmasunw Tao Ma (Inactive)
                Reporter:
                cprasadsunw Ck Prasad (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: