rossgoodwin/hmap — pull request #1 by noutenki (2014-06-11 19:16:20+00:00)
Title: Performance tweaks

- Turned pxlsByVal from a list of lists into a list of sets. The reason for this is that pxlsByVal[curVal].remove(pxl) (line 66) has linear runtime for lists, but for sets, remove() runs in constant time.

- removed the unnecessary equality check on line 51

- some minor changes

For the example bw pictures, the program now runs 48x faster on my machine.