4 ms·
Sequential search is near optimal for short lists. On embedded hardware you don't always have the luxury to create elaborate data structures for the "proper" so
by kevin_thibedeau 8y ago
Sequential search is near optimal for short lists. On embedded hardware you don't always have the luxury to create elaborate data structures for the "proper" solution.
- userbinator 8y agoThat makes it all the more surprising that they would include the "AT" prefix, which all the commands start with --- if I were implementing a command processor like this in a memory- and CPU-constrained environment, I'd match "AT" separately from the rest (differing) parts of the command.
- kevin_thibedeau 8y agoThey probably support other commands without a common prefix. It's not worth special casing a subset of the command set. It only burns a few dozen bytes.