Skip to content

Investigate caching ObjectPType instances #102

@chklauser

Description

@chklauser

While doing memory profiling, I noticed that there are probably a lot of "duplicate" ObjectPType objects. Since these are immutable and intended to be shared/aliased (the latter is true for all PType objects), there is potentially room for improvement through caching.

I'm thinking about something simple, like keeping the last 200 (or so) requested ObjectPTypes around. But as always: Need to measure first...

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions