pulse compile fix
performance, remove some IFCALLs and malloc / frees