-
Enhancement
-
Resolution: Fixed
-
P3
-
1.2.0, 1.3.0
-
None
-
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
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
- duplicates
-
JDK-4191095 JDK1.2RC1 <component>.getToolkit() slowdown due to font loading
-
- Closed
-
-
JDK-4257099 Performance: sun.awt.X11GraphicsEnvironment should use buffered s=
-
- Closed
-
-
JDK-4241321 Font directories are read without buffering during AWT installation
-
- Closed
-