Sebastiano Vigna
                                            Sebastiano Vigna
                                        
                                    Well, it's a one-time thing, so one not using reflection? I realize the copy() might not be lightweight. But which other cases would you need to cover (except Mapped vs....
Wow. That's a great and constructive discussion! My 2€¢: I welcomed the PRs from @mouse0w0 because this is how fastutil code is written. Beyond 2 accesses to the same array...
Well, the rule tries to avoid the bad case. It is physically impossible to try with all type combinations and all instances whether there will be a negative impact on...
> > for (int i = 0, max = size; ...) > > This code style has been applied to some of fastutil's templates, and if we don't use it,...
Mmmmhh no this will generate a copy of all functions in each generated file.
It seems Ok, but I'm in the middle of a deadline and unfortunately I don't have any bandwidth left. I'll be able to check this in a couple of weeks...
Ok, but is it necessary to name it comparingObj? Can't it just be named comparing? Or some ambiguity arises?
And, it would be nice to have a few unit tests covering the code.
Ok but you need to understand the macro system and write a generic implementation...
Oh well. I try to cache locally whenever possible. If you see places where I didn't, it is because I forgot it. A PR would be welcome!