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

Good to know - it definitely works best in Safari and Chrome right now (since they have the best-optimized JS implementations). I'm surprised Firefox is hanging that badly but I'll look into it.


The search filter seems a bit too eager. Type one letter and it tries to enumerate scrillions of methods, which kills Firefox.

It's probably the DOM manipulation specifically. Are you adding the results in one big innerHTML assignment?

You can also try breaking the search into small chunks with setTimeouts between them.


The problem is actually, more or less, building up the search index - this is only an issue the first time you do a particular kind of search, and it's fast after that. This involves parsing all the source code, which is a recursive process, which FF doesn't optimize (whereas Safari and Chrome zip through it much faster).




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

Search: