2 ms·
Are you using malloc + GC in preference to smart pointers, and if so why? I thought Fil-C was just C not C++? It doesn't seem like that is necessarily a perfor
by HarHarVeryFunny 6mo ago
Are you using malloc + GC in preference to smart pointers, and if so why? I thought Fil-C was just C not C++?
It doesn't seem like that is necessarily a performance win, especially since you could always use a smart pointer's raw pointer (preferably const) in a performance critical path.
- pizlonator 6mo agoFil-C is C and C++ Smart pointers give you reference counting at best. Language implementations tend to have a lot of reference cycles, so you need actual GC (or a very sophisticated kind of manual memory management)