Autodesk / PowerShapeAndPowerMillAPI

An API for Autodesk PowerShape and PowerMill
MIT License
31 stars 39 forks source link

Cache "numer of" variables to reduce API calls #46

Closed GeorgeKerwood closed 1 year ago

GeorgeKerwood commented 1 year ago

These changes look to cache the "NumberOf" properties for use during immutable loops, thus reducing API called behind the "get" accessors. There is also a change to nullify the internal curve collection caches after surface extensions to force for re-evaluation on the next "get".

lukeedw commented 1 year ago

I noticed that there were some odd white spacing going on. Tabs instead of spaces made things look odd in the review. I replaced tabs with 4 spaces and that tidied it up.