Revert "add compiler optimization"

This reverts commit 17bfc1f5da45cacb62200d94334d81cd771c77fc.