Optimize SearchPathCache by saving the last entry.

Jeff Davis <jdavis@postgresql.org>

Commit: a86c61c9eefaba7dcf375cd60c875c871ed60945
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2023-12-05T01:19:16Z
Releases: 17.0
Optimize SearchPathCache by saving the last entry.

Repeated lookups are common, so it's worth it to check the last entry
before doing another hash lookup.

Discussion: https://postgr.es/m/04c8592dbd694e4114a3ed87139a7a04e4363030.camel%40j-davis.com

Files

PathChange+/−
src/backend/catalog/namespace.c modified +57 −31

Discussion