Skip to content

Lazy allocation of type handlers (again) #3816

@roji

Description

@roji

We currently allocate all type handlers for each connection, at open time. There are many rather exotic types which people will rarely use, and this seems like a memory waste - think of the relatively heavy ArrayHandler, which gets allocated for each basic type and which very few people actually use.

This would also help trimming down the road, as unused type handlers (the majority in a typical app) could get trimmed.

(note we already did this for 3.1, but went back to eager at some point)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions