Code that ties up the compiler

Discussion in 'Java' started by Andrew Thompson, Nov 26, 2008.

  1. Long ago, I saw a piece of code that - when you went to compile it -
    took a *very* long time to complete. It had something to do with
    nested classes, AFAIR.

    I was wondering if modern javac had improved the situation on
    compiling such code, but I cannot recall the exact code, and cannot
    find references to it.

    Does anybody know the type of code that does/did occupy the compiler
    for great lengths of time? I'm pretty sure it was less than 100 lines
    of code.

    --
    Andrew Thompson
    http://pscode.org/
     
    Andrew Thompson, Nov 26, 2008
    #1
    1. Advertising

  2. Andrew Thompson

    Roedy Green Guest

    On Wed, 26 Nov 2008 15:35:32 -0800 (PST), Andrew Thompson
    <> wrote, quoted or indirectly quoted someone
    who said :

    >Does anybody know the type of code that does/did occupy the compiler
    >for great lengths of time? I'm pretty sure it was less than 100 lines
    >of code.


    have a look at the code for AmericanTax. There are a number of tables
    it has to construct and it seems to take forever.

    see http://mindprod.com/jgloss/products1.html#AMERICANTAX

    --
    Roedy Green Canadian Mind Products
    http://mindprod.com
    "Humanity is conducting an unintended, uncontrolled, globally pervasive experiment
    whose ultimate consequences could be second only to global nuclear war."
    ~ Environment Canada (The Canadian equivalent of the EPA on global warming)
     
    Roedy Green, Nov 27, 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. Yan
    Replies:
    0
    Views:
    1,138
  2. Michael Angelo Ravera

    Ranking an array (with ties and tollerances)

    Michael Angelo Ravera, Aug 17, 2011, in forum: C Programming
    Replies:
    13
    Views:
    566
    Michael Angelo Ravera
    Aug 21, 2011
  3. Axel Etzold

    Finding ties in sorting?

    Axel Etzold, Sep 14, 2007, in forum: Ruby
    Replies:
    4
    Views:
    128
    Dan Zwell
    Sep 14, 2007
  4. Andrew Hamm

    Chains of ties

    Andrew Hamm, Jul 9, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    111
    Andrew Hamm
    Jul 9, 2004
  5. kj
    Replies:
    8
    Views:
    145
    phaylon
    Mar 14, 2005
Loading...

Share This Page