Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think you could make your lowercase loop shorter – and definitely faster – by jumping into a second loop when inside a string, instead of setting a flag.


You’re right! I’ll do that. :-)

I haven’t done a lot of optimization yet-probably lots of things like this. :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: