In one of my C application I am using, below functions from ctype.h :
isalpha(), isspace(), ispunct(), tolower().
After profiling I see there are some bottlenecks in the calls of these functions(Basically my app is a character/string processing from a input text file and hence these functions are called exhaustively inside critical loops)I want to optimize them for speed and have my own implementation if it helps.
Where can I find such or logic to implement them?