-
Notifications
You must be signed in to change notification settings - Fork 4
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
why not .append here? #7
Comments
Hey there, no reason I can think of- just the way I normally do it; i.e. concatenate two lists (one of which has a length of 1) versus appending to a list. You got me interested though and I did some profiling (natively, on my Macbook w/ Python 2.7 and Python 3.7). Test code
Python 2.7 result
Python 3.7 result
Oddly, it seems the list concatenation approach is faster- complete luck on my behalf. It doesn't really make sense though, reading about it- /shrug |
Hello, wow .. thanks for taking the time to answer my question. The results confused me and I was unable to reproduce them.
Note in a |
|
Hello, sorry for the noise, I was just curious why
.append()
was not used here.collapsing-thread-pool-executor/collapsing_thread_pool_executor/collapsing_thread_pool_executor.py
Line 196 in 42c88fd
The text was updated successfully, but these errors were encountered: