Skip to content

PERF: cache interleaved_dtype in fast_xs #62263

@jbrockmendel

Description

@jbrockmendel

Repeated calls to df.iloc[n] go through fast_xs which will call interleaved_dtype each time with the same arguments. We could cache the result of that and save some time. Would need to be careful about cache invalidation.

xref #61747

Metadata

Metadata

Assignees

Labels

IndexingRelated to indexing on series/frames, not to indexes themselvesInternalsRelated to non-user accessible pandas implementationPerformanceMemory or execution speed performance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions