Hacker News new | ask | show | jobs
by yxhuvud 633 days ago
It is using Boehm/libgc. Just a simple webserver should not have the described behavior. The GC is not incremental though, so having a big heap would trigger it. But that is typically not the case for the described use case. Likely the issue is with doing something that involves more allocations than necessary.

There are works in libgc to allow incremental collection, but it is not yet ready for the needs of crystal (or at least it wasn't the last time I investigated).

1 comments

Can crystal use a moving GC or does it suffer from the same issues python has with C FFI?

Also, is it possible to use RC with crystal?

Yeah moving objects would invalidate pointers passed to external code that's not controlled by Crystal.