A friend of mine tried Optane SSD and he didn't notice any performance increase in software compilation or anything else comparing to 960 SSD from Samsung. So I don't expect to get much from such upgrade and will just keep my current 981 SSD.
While it can clearly vary widely depending upon the nature of what you are building, it can in some cases be worth using faster storage to shave many tens of minutes off the build time.
https://www.joelonsoftware.com/2009/03/27/solid-state-disks/