Make it work, then make it "clean" (that is, readable and maintainable); then make it fast, and only if measurement indicates that it matters.