router icon indicating copy to clipboard operation
router copied to clipboard

investigate Context's syscalls usage

Open Geal opened this issue 3 years ago • 1 comments

creating a new Context object surprisingly implies doing a file syscall: Screenshot from 2022-07-06 16-37-14

This is apparently due to DashMap looking up the available resources in the cgroup at creation: https://github.com/xacrimon/dashmap/blob/459db7ac6f3d0b46f507cb724dd9bb0ce389f4ae/src/lib.rs#L55

I opened https://github.com/xacrimon/dashmap/issues/219 to see if this could be memoized. If not we could do it inside the router

Geal avatar Jul 06 '22 15:07 Geal

this will be fixed once https://github.com/xacrimon/dashmap/pull/222 is merged and published

Geal avatar Aug 11 '22 13:08 Geal

closing this because DashMap 5.4.0 was released with a fix for that and added to the router in https://github.com/apollographql/router/commit/01512853c25441b1dcd58a51562aa8677e37b73e

Geal avatar Aug 31 '22 08:08 Geal