Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize cursor creation #11

Open
emptybutton opened this issue Oct 6, 2023 · 0 comments
Open

Optimize cursor creation #11

emptybutton opened this issue Oct 6, 2023 · 0 comments
Labels
cursors cursor_base.py & cursor optimization speeding up something

Comments

@emptybutton
Copy link
Owner

At each cursor generation step, a new cursor and a large number of subcursors are created as intermediate stages of generation using suboptimal logic, while access to subcursors is isolated, and using intermediate cursors of one generation for another is bad practice.

Head-on solution: implement creation of new cursors only at a start of generation using a flag attribute and rewrite functions for creating intermediate generation cursors and subcursors from immutable to mutable with a return of not a new one but a modified current one.

@emptybutton emptybutton added optimization speeding up something cursors cursor_base.py & cursor labels Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cursors cursor_base.py & cursor optimization speeding up something
Projects
None yet
Development

No branches or pull requests

1 participant