[Haskell-cafe] Re: Layout rule (was Re: PrefixMap: code review
duncan.coutts at worc.ox.ac.uk
Wed Mar 1 18:18:31 EST 2006
On Wed, 2006-03-01 at 22:58 +0000, Ben Rudiak-Gould wrote:
> Duncan Coutts wrote:
> > hIDE and Visual Haskell use the ghc lexer and get near-instantaneous
> > syntax highlighting.
> Hmm... I just installed Visual Haskell 0.1, and when I type in the editor,
> CPU usage rises to about 70% and there's a noticeable delay before each
> character appears on the screen. This is a very short module (~100 lines)
> and a Pentium M 1600 CPU. Am I doing something wrong?
I can't say too much about the internals of VH since I've not see the
code, only the description.
Perhaps that's because they're starting the parser immediately after
every keystroke and/or not killing the parser when the user types
another key. I've been using hIDE on a Pentium M 1600 laptop and on the
size of modules I've tried so far it's quick. The syntax highlighting
updates immediately and the type checker shows up errors a second or so
after I stop typing (which is because we wait about that long before
starting the parser).
More information about the Haskell-Cafe