3 ms·
Practical implementations of data structures require consideration of memory layouts and pools which have real equivalent in other languages. For example, imag
by frozenport 5y ago
Practical implementations of data structures require consideration of memory layouts and pools which have real equivalent in other languages.
For example, imagine building a graph structure to hold a uint8 field but calling malloc for every node. You get that and worse in Python.
Simply put you cannot write performant, non-toy data structures outside of low level languages like C++.
I think OP is simply not aware of the kind of structures that are used in algorithm critical applications, like CAD, compilers, etc.