#1 Reduce beanshell footprint

open
nobody
None
5
2001-06-03
2001-02-08
Tom Harwood
No

I noticed that a large percentage of the beanshell footprint is devoted to the JavaCC lexer and grammar.
The lex footprint could be reduced by using JFlex or another lex; the grammar footprint can be reduced by applying the optimization techniques described in the JavaCC doc (can't find the reference, says something
about optimizing).

Discussion

  • Pat Niemeyer
    Pat Niemeyer
    2001-06-03

    • labels: 103273 -->
    • milestone: 100100 -->
     
  • Pat Niemeyer
    Pat Niemeyer
    2001-06-03

    Logged In: YES
    user_id=18885

    Although I am very happy with JavaCC, I was dissapointed
    that some of the promised enhancements never appeared...
    One of those was that the parser generator would get smarter
    with respect to some of the special optimizations possible
    with the lookaheads. The project seems to have turned its
    attention to the new metamata.com parser generator (which I
    have never evaluated). I did briefly look at the
    optimization docs for JavaCC but I didn't understand them
    very well at the time and wasn't sure that I could make the
    necessary changes to the grammar to support them. I am also
    hesitant to hand tune the output of the parser generator for
    maintenance reasons. As far as Flex I don't know what it
    would take to use an alternate lexer.

    So, overall I agree and my sense is that the generated
    parser could be made smaller, but it will have to wait until
    someone tells me what to do or until I have time to look at
    it when things really settle down.

    Thanks,
    Pat