Record audio from a microphone to an SD card?

All right, thank you very much!
Is not that hard to do this, but now I'm worried about two things:

analogRead function is so slow by default (and still not yet tested its "fast mode")
I don't know how long takes writting a byte to a file in a SD card. Will the technique discussed in this thread work too?