usbong / UsbongKit

A framework for reading and displaying contents of Usbong Trees
www.usbong.ph
Apache License 2.0
2 stars 1 forks source link

Make hints implementation more efficient #23

Closed chrisamanse closed 7 years ago

chrisamanse commented 7 years ago

Better implementation should fix #21 and #22.

The parser is now instead going through each word of the text and looking up the hint in a Dictionary object. This implementation is more "natural". Whereas the previous implementation, the parser looks up every hint in the text. This is inefficient especially when the hints Dictionary has significantly more words than the words in the text.