Performance effect when using the class generated by javac -g

Discussion in 'Java' started by lightning, Sep 16, 2008.

  1. lightning

    lightning Guest

    How much cost do I have to pay when I use the classes generated by
    using javac -g ?
    It seems that only the size is little bigger, how many percent of
    performance will it draw down when I use the bigger?

    In fact, I need the log to show me the line no and file name.
    lightning, Sep 16, 2008
    #1
    1. Advertising

  2. On Sep 16, 2:41 am, lightning <> wrote:
    > How much cost do I have to pay when I use the classes generated by
    > using javac -g ?


    Almost nothing.

    > It seems that only the size is little bigger, how many percent of
    > performance will it draw down when I use the bigger?
    >
    > In fact, I need the log to show me the line no and file name.


    If your logging framework determines line number and filename the
    usual way (by examining a stacktrace), it's going to be slowish -
    populating a stacktrace is non-trivial. However, this has more to do
    with the JVM than with the class files.

    -o
    Owen Jacobson, Sep 16, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Schilling
    Replies:
    10
    Views:
    715
    Mike Schilling
    Sep 29, 2003
  2. Stefan
    Replies:
    0
    Views:
    5,010
    Stefan
    Nov 5, 2003
  3. Tasos Kotsikonas

    Calling javac and jar from a Java class

    Tasos Kotsikonas, Nov 17, 2003, in forum: Java
    Replies:
    3
    Views:
    2,751
    Roedy Green
    Nov 17, 2003
  4. asrahma1111
    Replies:
    11
    Views:
    1,376
    Chris Smith
    May 1, 2004
  5. Replies:
    4
    Views:
    4,969
    Greg R. Broderick
    Jul 28, 2006
Loading...

Share This Page