Skip to content
John Maxwell edited this page Nov 16, 2015 · 1 revision
  1. Updates should be faster Currently, the whole board gets rebuilt for each update (and I'm not even particularly efficient at that!). Profiling reveals that this is where the program spends essentially all of its time. Ideas:

    • Create the whole HTML string for the board, instead of inserting cells one at a time
    • Keep a jQuery reference to each cell, and just update the ones that need to change
  2. Board/Ant currently form a circular reference; this needs to go away. This doesn't cause a lot of harm at the moment, because I'm only creating one board and one ant (and because I'm developing using Chrome, which has a real garbage collector [that dirty look is directed at you, firefox]), but it's at best unaesthetic, and is potentially a booby trap.

Clone this wiki locally