use mmap to accelarate transfer speed