[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Nested comments
From: |
Mark Weaver |
Subject: |
RE: Nested comments |
Date: |
Thu, 3 Jul 2003 06:19:18 +0100 |
> I implemented nested [* ... *] comments by the code below, but it
> turns out
> to be slow with many nestings, and I do not know why. Is there a way to
> make it faster?
I've found switching to a hand-coded loop using input() to be the fastest
way of skipping large portions of the input. Presumably this works because
it avoids the overhead of maintaining yytext.