Fix slow compilation problem by using memcpy and pass byval.