On 09/14/2011 01:42 PM, Göran Krampe wrote:
We first tried to figure out what was happening, but we didn't succeed
and spent a lot of time on it. Then Nicolas decided to go "native" on
the problem. I rewrote ChunkParser - because it was also in PP and was
also going into endless chewing. Nicolas used PEGjs to produce a new
parser.
Note that the AST and code emitting etc is still in Amber.
And oh, I only rewrote the ChunkParser in Amber - not in raw js. And in
fact, it came out simpler I would say - but chunk format is not that
complicated (although a bit messy to get right).
Btw, Nicolas just checked out an old Jtalk to see how much difference
the "changed lookup" made - and for tinyBench it only took a ... 20% hit
or something. Not a magnitude thing. (this is referring to what Lukas
wrote in another post)
We might need to investigate why the endless chewing came about though -
because it indicates some kind of bug somewhere I think, probably in
Amber itself, or in the PP port.
regards, Göran