2238Re: Make langmap accept multi-byte characters
- Oct 14, 2006Konstantin Korikov wrote:
> > > > Instead of using a fixed size array consider using a growarray. ThenIt looks like you use pages of 256 characters. Isn't that a bit much?
> > > > the size won't be limited. See ga_init() and related functions.
> > >
> > > Thanks for advice. I will rewrite the patch.
> > Good.
> I use combination of binary search and simple array lockup.
Memory will be wasted if in some pages only one character is used.
I wonder why you are using pages. What is the problem with having a
separate entry for each key?
I wonder how much deeper the ocean would be without sponges.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
- << Previous post in topic Next post in topic >>