Perform string uniquing by value in pickle serialization. (#23741)
Summary:
On my testcase, this reduces the uncompressed size of TorchScript
debug info from 281KB to 76KB. With zip compression enabled, this
saves about 2.5KB of final size.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/23741
Differential Revision: D16624128
fbshipit-source-id: ce45659d6b20d40608ace05639b69b93696b00d9