[antlr-interest] Antlr v4 - C++ target

Gokulakannan Somasundaram gokul007 at gmail.com
Tue Jan 31 16:46:24 PST 2012


I hope you understand that by providing templates against virtual
functions, i save 8 bytes for every object. But i saw your last
implementation, where in you converted the function pointers into normal
functions. Is that the approach you are taking( not providing the option to
override )?

Also please point out, why you feel mine will have any performance issues?

Thanks,
Gokul.

On Wed, Feb 1, 2012 at 8:35 AM, Gokulakannan Somasundaram <
gokul007 at gmail.com> wrote:

> Hi Gokulakannan,
>>
>>   I am also converting to C++ but my goal is primarily performance. I
>> don't intend to use templates.
>>   As far as tradeoffs, the commontoken struct has a field for everything
>> so lookup after lexing is fast but at the cost of memory use. I'm
>> investigating replacing some of these with member functions that only
>> calculate values when needed or redirect to a different data structure.
>>
>>
>> Well my goal is also about performance primarily. Infact that was the
> reason, i choose to work with templates.  Regarding the memory use, your
> attempt will be definitely useful. I can incorporate it, if its proven
> faster. But for the memory issue, i have a different plan altogether. I
> will start it as a new thread, once i finish this development.
>
> Thanks,
> Gokul.
>


More information about the antlr-interest mailing list