jhlywa/chess.js — pull request #15 by stiff (2012-05-02 12:31:50+00:00)
Title: Significantly optimized load_pgn() performance

I've rewritten `move_from_san()` to parse the given input directly, not by generating all possible moves zillions of times. The code is not very nice, but it's quite simple.

Also I think it would be a huge improvement to cache `generate_moves()` results if board state didn't change, because it's called so much often.