I am looking for a time efficent way of taking different command strings so proper functions get called.

if....else seems to be worst case

switch(first char of command) might be viable, but would still have if....elses. I could use something like a key in the first place which might be viable. I am wondering if anyone knows an efficent way to do this as it is intended to be used on a server with lots of incoming data.