The Search algorithm should use a better algorithm
bdezonia opened this issue · 2 comments
bdezonia commented
The Search algorithm was implemented as quickly as possible. It should be revisited and improved to use a better algorithm (perhaps Boyer Moore).
bdezonia commented
Boyer Moore seems to be very much oriented towards strings. During preprocessing it needs to allocate a big array covering the full range of the U's of the given algebra (so for instance 256 ints to cover a U that represents a byte). It might not be possible to use it as is for zorbage's general needs. More investigation is needed.
bdezonia commented
Simple improved algo now available on master. Closing.