Searching QuantLib::Dates, Part 3Comparing QuantLib::Date objects by their serial number has given us great performance gains, but we can do better. We could continue to push the data points into our output collection individually, bOct 10 · 1 min readchrisspicer.hashnode.dev
Searching QuantLib::Dates, Part 2Search using Serial Numbers The method of comparison used in Part 1 is a naive approach. It requires the application to resolve all dates to their months and years. A better approach is to use the facOct 4 · 2 min readchrisspicer.hashnode.dev
Searching QuantLib::Dates, Part 1Recently I spotted a performance problem where the code was searching for all the index points in a particular month. The index points are date and value pairs, in this case represented as std::map<QuSep 30 · 2 min readchrisspicer.hashnode.dev
How the C++ Multimap handles Identical ValuesThe std::multimap can hold multiple values associated with the same key. This differentiates it from std::map, which can only have one value per key. When an item is inserted into the multimap, it will typically be ordered by its key. I then had the ...Sep 13, 2024 · 2 min readchrisspicer.hashnode.dev
When White Dwarf magazine published CodeI have a Warhammer habit. I was introduced to the hobby by my older brother in the mid-1980s, so I have an affection for issues of White Dwarf magazine from that era. For those not aware: Games Workshop produce the Warhammer table-top wargame and als...May 18, 2023 · 2 min readchrisspicer.hashnode.dev