compile server : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

compile server
Javac takes quite a long time to compile even the tiniest class. It takes a long time to stagger to its feet to get started. Then in rips along at a fast pace. What you can do is keep a copy of Javac permanently running and feed it stuff to compile on the fly, saving the startup time. In a team environment, you can further avoid each team member recompiling if you have an automated scheme to keep recompiling the universe or the changes from time to time.

It is simpler than you would imagine given the sun.tools.javac.Main to implement the server. Here is code for a server and submitter. The submitter could further be speeded up by running constantly or being JET (Just Enough Time) compiled or written in C. Here is some sample code for a Compile Server and Compile submitter using a raw socket connection. Stuart Gratham explains the idea.


This page is posted
on the web at:

http://mindprod.com/jgloss/compileserver.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\compileserver.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[3.145.38.80]
You are visitor number