Last week I accepted the University of Pennsylvania‘s offer to study for a PhD (in PL). A few cool people there:
- Benjamin Pierce
- Rajeev Alur
- Stephanie Weirich
- Steve Zdancewic
- Val Tannen
- Ben Taskar
- Fernando Pereira
I’m really excited!
So the function fix_dom_clone described in my last post isn’t exactly cheap. In fact, it’s far and away where my lens library is spending most of its time.
|Function||Calls||Percentage of time|
I’ve implemented a few optimizations to reduce the number of times it needs to be called, but its recursion is brutal. The DOM treeWalker might be more efficient than what I have now. I don’t think it can matter much, because according to this website, IE and Safari don’t support it.