blog.codingconfessions.com/p/seeing-the...
blog.codingconfessions.com/p/seeing-the...
blog.codingconfessions.com/p/python-per...
blog.codingconfessions.com/p/python-per...
The size is stored right inside the object, but len() takes a five-pointer detour, only to land back where it started.
This is why if not mylist is ~2x faster for emptiness checks!
The size is stored right inside the object, but len() takes a five-pointer detour, only to land back where it started.
This is why if not mylist is ~2x faster for emptiness checks!
PS: I fixed the error he found in the article.
Article: blog.codingconfessions.com/p/how-unix-s...
PS: I fixed the error he found in the article.
Article: blog.codingconfessions.com/p/how-unix-s...
In the 1970s, Douglas McIlroy faced this exact challenge while implementing the spell checker for Unix at AT&T.
In the 1970s, Douglas McIlroy faced this exact challenge while implementing the spell checker for Unix at AT&T.
For static data, you know the probabilities of the symbols, and can build a Huffman tree, but for an infinite stream, you can't do that
For static data, you know the probabilities of the symbols, and can build a Huffman tree, but for an infinite stream, you can't do that
PDF: assets.bitbashing.io/papers/concu...
PDF: assets.bitbashing.io/papers/concu...
PDF: www.akkadia.org/drepper/tls....
PDF: www.akkadia.org/drepper/tls....