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

More Efficient List Creation #83

Closed
GlacialBlaze opened this issue Feb 9, 2021 · 1 comment · Fixed by #86
Closed

More Efficient List Creation #83

GlacialBlaze opened this issue Feb 9, 2021 · 1 comment · Fixed by #86
Assignees
Labels
enhancement New feature or request

Comments

@GlacialBlaze
Copy link
Contributor

The following code snippet is the generation of a list:

image

One way would be numbers = [randint(10, 400) for i in range(display.numBars)]. This is more efficient than the function approach.

@GlacialBlaze GlacialBlaze added the enhancement New feature or request label Feb 9, 2021
@GlacialBlaze GlacialBlaze changed the title Suggestion - Shorter and Faster List Creation More Efficient List Creation Feb 9, 2021
@LucasPilla
Copy link
Owner

@GlacialBlaze Could you implement these changes and make a pull request? This way you become a 'official' contributor

@LucasPilla LucasPilla linked a pull request Feb 15, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants