first multithread rmemory ok, but slow