CSChris Spicerinchrisspicer.hashnode.dev·5d ago · 2 min readSearching 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 fac00
CSChris Spicerinchrisspicer.hashnode.dev·Sep 30 · 2 min readSearching 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<Qu00
CSChris Spicerinchrisspicer.hashnode.dev·Sep 13, 2024 · 2 min readHow 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 ...00
CSChris Spicerinchrisspicer.hashnode.dev·May 18, 2023 · 2 min readWhen 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...00
CSChris Spicerinchrisspicer.hashnode.dev·May 18, 2023 · 2 min readVector CapacityThe vector capacity function returns the memory size of the vector, expressed in terms of the size of the elements. The capacity can be equal to or larger than the size of the vector, as demonstrated 00