3 ms·
The rule of thumb I've read is that map is appropriate and (generally) faster when you do not need to create a lambda.
by steve-howard 15y ago
The rule of thumb I've read is that map is appropriate and (generally) faster when you do not need to create a lambda.
- Estragon 15y agoThat's not strictly correct. It really comes down to whether you're calling a native python function or a C extension. If it's a native python function call, it's going to be relatively slow.