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

Solaris Font code is inefficient

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.2.0, 1.3.0
    • client-libs
    • None
    • 2d
    • kestrel
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_7, windows_nt

      I did a truss of java TableExample3 from the JFC demos on my machine and
      started to look at why it took so long to load.

      I was disappointed to find that the Solaris font code reads fonts information
      at a painful 1 char at a time! These reads should be buffered, please fix ASAP

      6126: open("/usr/openwin/lib/X11/fonts/Type1/outline/fonts.dir", O_RDONLY) = 9
      16126: fstat(9, 0xEFFFCA40) = 0
      16126: lseek(4, 809760, SEEK_SET) = 809760
      16126: read(4, " P K0304\n\0\0\0\0\00F r".., 30) = 30
      16126: lseek(4, 809819, SEEK_SET) = 809819
      16126: read(4, "CAFEBABE\003\0 -\0BF03\0".., 5974) = 5974
      16126: fcntl(9, F_GETFL, 0x00000000) = 0
      16126: fcntl(9, F_SETFL, 0x00000080) = 0
      16126: ioctl(9, I_SETSIG, S_INPUT|S_HIPRI|S_OUTPUT|S_HANGUP) Err#25 ENOTTY
      16126: sigprocmask(SIG_BLOCK, 0xEFFFC900, 0xEFFFC8F0) = 0
      16126: sigprocmask(SIG_SETMASK, 0xEFFFC8F0, 0x00000000) = 0
      16126: read(9, " 1", 1) = 1
      16126: read(9, " 3", 1) = 1
      16126: read(9, "\n", 1) = 1
      16126: read(9, " C", 1) = 1
      16126: read(9, " o", 1) = 1
      16126: read(9, " u", 1) = 1
      16126: read(9, " r", 1) = 1
      16126: read(9, " i", 1) = 1
      16126: read(9, " e", 1) = 1

            pkejriwasunw Parry Kejriwal (Inactive)
            cbfox Calvin Fox
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: