﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32901	BaseForm.__getitem__() does unneeded work in the happy path	Chris Jerdonek	Chris Jerdonek	"I noticed that in the ""happy path,"" `BaseForm.__getitem__()` does unneeded work: https://github.com/django/django/blob/fa35c8bdbc6aca65d94d6280fa463d5bc7baa5c0/django/forms/forms.py#L150-L164

It can just return `self._bound_fields_cache[name]` at the beginning and handle `KeyError`, instead of accessing `self.fields` followed by checking for the presence of `name` in `self._bound_fields_cache` before doing so each time.
"	Cleanup/optimization	closed	Forms	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
