memory-pool: support expression

It will reduce memory usage without GC!