edualgo / eduAlgo

A simple python package having modules of different algorithms to use in educational purposes.
https://edualgo.github.io/documentation/
MIT License
99 stars 54 forks source link

unnecessary `list` call - write as literal #197

Closed VenkatsQuest closed 2 years ago

VenkatsQuest commented 2 years ago

In [5]: timeit.timeit(stmt="list()", number=100000000) Out[5]: 7.356000728000254

In [6]: timeit.timeit(stmt="[]", number=100000000) Out[6]: 1.573771306999788

ghost commented 2 years ago

Changes to your CodeSee Architecture Map:

View a CodeSee Map of these changes

Review in an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend