PERF: improved performance of compatible pickles (GH6899)
Merge pull request #6983 from jreback/pickle_perf

PERF: improved performance of compatible pickles (GH6899)