I don’t think NuPIC uses the second optimization, though. I see the following default parameters:
"maxSegmentsPerCell": 128,
"maxSynapsesPerSegment": 128,
Optimization #2 is an abstraction of setting the above to this:
"maxSegmentsPerCell": 1,
"maxSynapsesPerSegment": 16384,