Send the pointer from the pair to 3rd party and not the pair itself. You lose the efficiency in 3rd party, but still retain your gain in your own code. Better than before.
The belief it was created alongside UNIX from the start, when it was used to port UNIX V4 into high level language.
Micro-optimizing each line of code as it is written, "because it is fast", without even bothering to use a profiler.
Even though lint was created alongside C to fix already known programmer faults using the language, in 1979, the belief that only bad programmers need such kind of tooling.
It's not a cult, its just that the cases where the risks of passing by value would be worth any perceived advantage are so few that it just doesn't make sense to even consider it.
It's not like it's a flimsy tribal based claim, the guidance is solid.
compiler-guy|4 years ago
Which is to say, is unrealistic for many programs.
pjmlp|4 years ago
habibur|4 years ago
tgv|4 years ago
Gibbon1|4 years ago
pjmlp|4 years ago
The belief it was created alongside UNIX from the start, when it was used to port UNIX V4 into high level language.
Micro-optimizing each line of code as it is written, "because it is fast", without even bothering to use a profiler.
Even though lint was created alongside C to fix already known programmer faults using the language, in 1979, the belief that only bad programmers need such kind of tooling.
kzrdude|4 years ago
b5n|4 years ago
It's not like it's a flimsy tribal based claim, the guidance is solid.
saurik|4 years ago
radicalcentrist|4 years ago
macintux|4 years ago
https://github.com/antirez/sds
unknown|4 years ago
[deleted]