andresy/torch — pull request #85 by fidlej (2012-11-29 11:04:03+00:00)
Title: Improved Module:getParameters() speed when using many storages

I used torch.pointer(storage) as the key when searching for a storage.
The local table storages now stores the following entries:

storages[torch.pointer(storage)] = {storage, storageOffet}