×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Aug 2003
    Location
    uk
    Posts
    232

    Question inlining functions

    Is there a solution for inlining method calls other than manually inlining it yourself ?

    I am talking about siturations where for code clarity you have declared a method (e.g. engine_tick() ) which is called only once in one place.

    Inlining engine_tick() to where its called will save on jar size not to mention cpu use, however ...

    I have found no tools that will do this for me ...

    Does anyone know of anything that can do this ?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

  3. #3
    Regular Contributor
    Join Date
    Aug 2003
    Location
    uk
    Posts
    232
    Thats semi useful but not really what I am looking for.

    What I want is something that will inteligently inline anything that is called in only one place or where inlining the code would result in a smaller jar or a significant speed increase.

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    Jax might be able to do this, but I've never seen anything that will do it particularly well. A simple way is to use a C pre-processor's macro-expansion facility.

    Graham.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×