has anyone hacked Clang or GCC to automatically zero C / C++ objects that would otherwise be uninitialized? would love to see the overhead
-
-
Glibc avoids the base cost of zero-init by only using the table for needles >32byte, makes their strstr much slower for short needles.
-
I used an uninitialized offset array and a cheap bit-array recording which slots of the former have been filled.
-
I don't follow; I was mostly dealing with the cost of doing "memset(tmp, 0, sizeof(BCCX_Node))" and similar when allocating nodes.
-
It's a 256-word (1k or 2k) array that's semantically initially zero, but sparsely accessed, & cost of fill is high rel to some calls.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.