nathansobo/space-pen — pull request #15 by kevinsawicki (2013-08-06 17:09:40+00:00)
Title: Cache View instances in a WeakMap when available

Calling `view()` from `$.cleanData` causes slow downs when removing many elements.

By caching the `View` instance for an element in a `WeakMap` instead of a jQuery data attribute the time taken to remove 10k divs goes from 85ms to 25ms.