You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stefan Reich <st...@googlemail.com.INVALID> on 2022/02/02 17:02:14 UTC
Optimizing ConstantPoolGen
Hi folks,
I'm getting into compiling my own little scripting language into Java byte
code. Short experimentation with both Javassist and BCEL led me to use BCEL.
Just a quick question: Has anyone looked into optimizing constant lookups
in ConstantPoolGen (e.g. addInteger)? Right now, they are just scanned
linearly every time.
Many greetings,
Stefan
--
== Gaz.AI ==
Re: Optimizing ConstantPoolGen
Posted by Stefan Reich <st...@googlemail.com.INVALID>.
Thank you
On Wed, 2 Feb 2022 at 20:24, Gary Gregory <ga...@gmail.com> wrote:
> I would guess not. PRs (with tests) are welcome in GitHub.
>
> Gary
>
> On Wed, Feb 2, 2022, 12:02 Stefan Reich
> <st...@googlemail.com.invalid> wrote:
>
> > Hi folks,
> >
> > I'm getting into compiling my own little scripting language into Java
> byte
> > code. Short experimentation with both Javassist and BCEL led me to use
> > BCEL.
> >
> > Just a quick question: Has anyone looked into optimizing constant lookups
> > in ConstantPoolGen (e.g. addInteger)? Right now, they are just scanned
> > linearly every time.
> >
> > Many greetings,
> > Stefan
> >
> > --
> > == Gaz.AI ==
> >
>
Re: Optimizing ConstantPoolGen
Posted by Gary Gregory <ga...@gmail.com>.
I would guess not. PRs (with tests) are welcome in GitHub.
Gary
On Wed, Feb 2, 2022, 12:02 Stefan Reich
<st...@googlemail.com.invalid> wrote:
> Hi folks,
>
> I'm getting into compiling my own little scripting language into Java byte
> code. Short experimentation with both Javassist and BCEL led me to use
> BCEL.
>
> Just a quick question: Has anyone looked into optimizing constant lookups
> in ConstantPoolGen (e.g. addInteger)? Right now, they are just scanned
> linearly every time.
>
> Many greetings,
> Stefan
>
> --
> == Gaz.AI ==
>