help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: advice on hash tables?


From: Stefan Monnier
Subject: Re: advice on hash tables?
Date: Fri, 04 Jul 2014 21:45:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> I don't want to have to specify what type of characters I'm using, I'd
> like to just treat all types of characters as the same. The brute-force
> solution would be redundant hash-table entries, one each for simplified
> and traditional characters. That would double the size of the hash table
> to 200,000+.

If the mapping from traditional characters to simplified characters
a function?  If so, I suggest you use as key the simplified characters
version, and then when looking things up, you first apply the
simplification function.


        Stefan




reply via email to

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