GC timing

Hal Murray halmurray at sonic.net
Wed Jul 7 17:51:01 UTC 2021


>> That doesn't make sense.  Where does your "one second apart" come from?  
Why
>> is "currently has 2 threads" interesting?
> When do we poll at a less than one-secpmd interval? Most allocatopmns wo;l;
> ber associated with making a packet fra,e for he send, thn dealing with a
> response that comes bacl less than 100ms later. 

I was thinking of the server side.  Pool servers can easily get 100s of 
packets/second.  I assume that means we have to write the server side so that 
it doesn't do any allocations.

What is the API for recvfrom()?  Do you pass in a buffer, like in C, or does 
it return a newly allocated buffer?

--------

Many years ago, a system I worked on had an API for scanning directories that 
returned a newly allocated string for each file.  There was also a side door 
to avoid that allocation for code that wanted to run faster.


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list