Backport PR #49771 on branch 1.5.x (PERF: Use fastpath for accessing option value in internals)
Backport PR #49771: PERF: Use fastpath for accessing option value in internals
Hmm, the test that I added is failing, but I can't reproduce this locally (using the branch from this PR) This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this.