Another approach would be to include the math.h library and base the mapping on its sin() function.
It'd probably be slower to execute than a lookup table but possibly a bit easier to write the code.
Whichever way you do it, yes it will slow down your sketch compared to a linear mapping. You need to experiment to see if it's still fast enough.