[3513] in java-interest

home help back first fref pref prev next nref lref last post

Inline methods

daemon@ATHENA.MIT.EDU (Flint O'Brien)
Wed Nov 15 01:37:57 1995

Date: Wed, 15 Nov 1995 00:02:39 -0500
From: "Flint O'Brien" <flint@nando.net>
To: java-interest@java.sun.com

I haven't heard anyone mention the lack of inlines in Java.
The use of inlines can significantly improve execution speed.

I realize one problem is that inlines are non-virtual methods
by nature. If they are resolved at compile time, you would have
to recompile when the class changes the inline definition. Java
has done a lot to fix the "Fragile" base class problem (see the
White Paper).

One solution is to resolve inlines at load time. This could even
be a user option (call the methods or patch in the inline code).

The loader could even decide what methods should be inline. The
criteria could be controlled by the user. For example, force all
methods that simply return data to be coded inline.

flint@nando.net
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post