You might want to read up on this, but it is my understanding (and I am NOT an M. D.) that taking NSAIDS during a race can have adverse health consequences. Consequently, I won't do it. But...
someone whose marathon PR is 27 minutes faster than mine advised me to take them; she claims that taking them helps her.