﻿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
35236	Access Field.attname and Field.column directly	Adam Johnson	nobody	"Many field references call `Field.get_attname_column()` or `Field.get_attname()`, despite the `attname` and `column` attributes containing the computed results (after `contribute_to_class()`). Updating those call sites to plain attribute access eliminates some function calls, a worthy small speedup.

From a profile of system checks on a smaller project, there were ~1k calls for various versions of each method:

{{{
630    0.000    0.000    0.000    0.000 __init__.py:976(get_attname_column)
208    0.000    0.000    0.000    0.000 related.py:1122(get_attname_column)
431    0.000    0.000    0.000    0.000 related.py:1119(get_attname)
666    0.000    0.000    0.000    0.000 __init__.py:973(get_attname)
}}}

All of these are eliminated by moving to attribute access."	Cleanup/optimization	assigned	Database layer (models, ORM)	dev	Normal				Unreviewed	0	0	0	0	0	0
