Re:Ask HN: Favorite pointer tricks in C?
by scumola on Saturday November 20, 2010 @06:56PM
(#1925736)
Compare pointers rather than compare strings: convert all words in a dictionary to a trie structure. Then, each leaf of the tree (a word) is a pointer. A phrase or sentance can be a list of pointers. Pointer compares are mondo-faster when comparing two pointers than walking down two strings.
[ Parent
| on HN ]
There are no comments on this comment yet.