Theres a little more to a racing line. There is pre-apex, apex, and post-apex. Pre apex is when you brake and begin the turn, apex is the part of the turn where you can accelerate again to be at good speed out of it, and post-apex is the part after the apex beggining the straight or next rurn.
mashing the throttle is just accelerate as hard the car can do