Re:Drop millions of allocations by using a linked list (2015)
by thechao on Friday March 12, 2021 @09:17AM
(#26436038)
In the mid 00s, my advisor had me explore the concept of adding default parameters to C++ functions where the default snagged the nearest lexically scoped named object of the right type from the calling environment, i.e.,
Then in the calling environments:
It handily solves a number of problems. In particular, we were looking at how we manage heap allocation for large sparse matrix libraries a la MTL4.
[ Parent
| on HN ]
Re:Drop millions of allocations by using a linked list (2015)
by gpderetta on Friday March 12, 2021 @10:12AM
(#26436629)
Interesting. Isn't this this vaguely reminiscent of implicits in Scala?