Skip to content

Look in to using bisect module to replace home grown binary searches. #3298

@willmcgugan

Description

@willmcgugan

I implemented a few binary searches in Rich, such as getting the cell length of a character. I wonder if we can replace those binary searches with the bisect module. If that is implemented in C, which I imagine it is, then it could be a speed win.

Suggest we try it, and if it works profile the improvement (if any).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions