The FAST corner detection uses simple pixel intensity comparisions to detect corners.
Other commonly seen
To further optimize FAST-12, the pixels at indices - 0, 4, 8, 12 can be checked first to see if they fall outside the threshold. If they do not, then we can just exclude the point as a corner.
Since, FAST will register corners on closeby pixels, non maximal suppression has to be done on the final result to combine the closer corners into one.