Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Conversation

mwoolweaver
Copy link
Contributor

less counting and proper list handling by creating empty list's (list =[]) and .append()'ing items to them.

My previous rookie mistake


I was creating a list like so nW = [None] * newWhiteListlen - Leaves us with a lot of useless None values

I was also keeping a count to use as an index. - I didn't need to do this because because we can .append() it to the end of the list

Then I'd add items to the list at index it had counted to -

As you see there would be a lot of None values in the list that weren't being used and taking up RAM for no reason.

Michael Woolweaver added 3 commits October 28, 2020 18:31
by creating empty list's and .append()'ing items to them instead of how I had it before
Also adds try: <> except:<> steps to ADD & DELETE sql statements
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant