1
1
mirror of https://github.com/urbit/shrub.git synced 2025-01-05 19:46:50 +03:00

serf: auto-pack every 50K events

This commit is contained in:
Joe Bryan 2020-04-30 15:29:56 -07:00
parent b24a83e8f2
commit d91e119623

View File

@ -450,6 +450,10 @@ _serf_sure_feck(u3_serf* sef_u, c3_w pre_w, u3_noun vir)
sef_u->rec_o = c3o(sef_u->rec_o, _(0 == (sef_u->dun_d % 1000ULL)));
}
// pack every 50K events
//
sef_u->pac_o = c3o(sef_u->pac_o, _(0 == (sef_u->dun_d % 50000ULL)));
// notify daemon of memory pressure via "fake" effect
//
if ( u3_none != pri ) {