top | item 43335269 (no title) tvier | 11 months ago Much of both sides of this argument are opinion, but wrt this comment.> ... no function call overhead.This code has more function calls. O(n) vs 3 for the original discuss order hn newest unknown|11 months ago [deleted] khaledh|11 months ago That's not true. The lambdas used in the functional version are each called once for every item in the list. stouset|11 months ago No sane optimizer is going to emit the functional code as a gajillion function calls. load replies (3)
khaledh|11 months ago That's not true. The lambdas used in the functional version are each called once for every item in the list. stouset|11 months ago No sane optimizer is going to emit the functional code as a gajillion function calls. load replies (3)
stouset|11 months ago No sane optimizer is going to emit the functional code as a gajillion function calls. load replies (3)
unknown|11 months ago
[deleted]
khaledh|11 months ago
stouset|11 months ago