Skip to main content

Java startup time (Windows)

1 reply [Last post]
whiterabbit
Offline
Joined: 2004-02-09

Hello.

I heard java's bottle neck on start up time is disk access. (rt.jar) And I heard rt.jar is loaded by using memory mapped file. Is that correct?

I experienced similer heavy disk access when I developed application with memory mapped file. (30MB or something) And I solved this problem by scanning large file first (I used simple std::ifstream), storing file pointer (std::ifstream::tellg() returns) for index and seeked to that position when data was needed. That was interesting experience because I thought memory mapped file could efficiently handle a large file, but that was what I experienced.

Maybe can we take similer approeach for rt.jar? Sorry if I'm saying miss-pointed thing. Thank you.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
whiterabbit
Offline
Joined: 2004-02-09

Sorry, I was stupid. Memory mapped file method accesses disk heavly, but it is faster. Sorry for garbage post.