1
vote
Generic musings 2
The Programming Works
– It was pointed out in the comments to my previous post that my simple generic sorting routine contains additional overhead compared to TArray Rtl code (Generic.Collections & Generic.Defaults units) because RTTI is used inside the loop. Yes, that is true. Let try to improve the code by taking RTTI check away from the loop, while keeping the code simple (without using over-weighted and tricky IComparer interface). Simple tasks should have simple solutions. Now when I look at it the solution seems quite obvious, still I spent some hours trying to find it – generics are weird for beginner. The ...
Statistics
|
Visits by Source |
User Actions |




