Compiling anything that includes generated IPC messages is painfully slow at the moment. This moves the encoding helpers out of line, which helps a bit. Doing the same for decoding will help more.