4 ms·
> to the inability to do otherwise trivial stuff in python Like what? > or the huge bottleneck of unpacking (star operator in python) In what sense is unpack
by dunefox 6y ago
> to the inability to do otherwise trivial stuff in python
Like what?
> or the huge bottleneck of unpacking (star operator in python)
In what sense is unpacking a bottleneck?
- PartiallyTyped 6y ago> In what sense is unpacking a bottleneck? Performance wise, I can't recall the exact scenario though.
- jakobnissen 6y agoUnpacking (or splatting) can be excruciatingly slow in Julia if you have more than a few dozen elements in the iterable. That happens because it gets splatted into a tuple with N elements, which in Julia has a type parameter for every element - i.e. a generic type Tuple{N1, N2, N3 ... N} with as many type parameters as there are elements in the iterable. And the compiler has a hard time working with an instance of a type with e.g. 10,000 parameters.