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

Start of attempted Queue refactor. #255

Closed
wants to merge 7 commits into from
Closed

Start of attempted Queue refactor. #255

wants to merge 7 commits into from

Conversation

Sachaa-Thanasius
Copy link
Member

@Sachaa-Thanasius Sachaa-Thanasius commented Nov 30, 2023

Attempting to start a refactor for wavelink.Queue to use an internal list instead of an internal deque.

It should allow users to use the Queue in more ways that need fast random access. Changes are based on the pre-existing queue and this rough layout by Mysty in the Wavelink Discord dev channel.

(Side note: Part of the reason this is a draft is because it feels like a mess at the moment.)

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
    • I have updated the changelog with a quick recap of my changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed) (with further changes, might not be the case.)
  • This PR is not a code change (e.g. documentation, README, ...)
  • I have read and agree to the Developer Certificate of Origin for this contribution

@Sachaa-Thanasius Sachaa-Thanasius self-assigned this Dec 14, 2023
- Add more docstrings.
- Change the Queue's internal list to a single-underscore-prefixed name.
- Add some "fast" paths when putting stuff in the queue?
- Experiment with TypeGuard. Will probably be removed later.
@chillymosh
Copy link
Contributor

Closing as this was implemented in #280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants