Optimize signed int write for primtive and investigation why pmap write
is slower than other operations.