bug-zile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-zile] Further development of Lua Zile


From: Gary V. Vaughan
Subject: Re: [Bug-zile] Further development of Lua Zile
Date: Thu, 6 Sep 2012 17:35:52 +0700

Hi Reuben,

On 6 ก.ย. 2012, at 5:41, Reuben Thomas <address@hidden> wrote:
> I've pushed the changes to get alien buffers working, and all the
> tests pass.

Awesome!  I have some hacking time next week, and I'm looking
forward to rebasing my branches onto your changes to see whether
we now have the speed required to finish my syntax highlighter.

> Some work still needs to be done before the full benefits
> of native performance are reaped: in particular, the "sub" method of
> AStr and EStr should really not be used (and removed). This affects
> mainly the "find" method and the code which deals with line ending
> recoding. The solution is straightforward in theory: act directly on
> the buffer, as in C.

More patches to alien?  Or a lua extension in C? (Sorry, I haven't
spent the time to become familiar with that part of the code, so it's
likely these are stupid questions).

> Writing alien bindings for memmem and the GNU
> regex routines ought to be easy; unfortunately, for searching
> backwards one needs to use GNU regex or implement memrmem.

That's not strictly true.  I was able to get backward search working
with rex_onig, although I don't doubt that there was an attached
performance penalty because of the hacky way I did it.

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]