performance

29 ideas

Selecting the best projects

When evaluating and prioritising projects, it is not enough to look at the business case. We also need to understand how the project connects to a higher purpose.

Unfortunately, few organisations consider articulating the why of their projects even though it is vital for selecting and prioritising the best projects.

14 STASHED

2 LIKES

Does Your Project Have a Purpose?

hbr.org

4 IDEAS

slice

slice(stop)

slice(start, stop, [step])

  • Standard indexing relies on slice():ย a[start:stop:step]ย callsย a.__getitem__(slice(start, stop, step)).
  • slice() creates a shallow copy of the selected elements from the original list.
  • Whenever you slice a list, the Python interpreter creates a new list and populates it with references to the elements you selected from the original list. Given that a reference needs 8 bytes on 64-bit systems,ย the overhead of copying references becomes noticeable when working with large lists. For example, slicing 1000 elements allocates almost 8kb worth of references.

2 STASHED

slice or islice? When to use which

๐Ÿ Python docs & Stack Overflow

3 IDEAS

โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ

โค๏ธ Brainstash Inc.