Less data to transmit from a server to a virtual machine on a client is
achieved by transmitting only those methods of classes that the executed
application actually requires. This is accomplished by taking the classes
of the targeted application and statically determining which methods of
these classes, as well as of the library classes, can actually be used by
the application. A method usage map of usable methods for each class is
saved in a file. When the request to download is received from the
client, the server consults this map and selectively transmits only those
methods that are in it. This saves download time and memory space in the
virtual machine and speeds up execution.