Page MenuHome

Refactoring: View2DScrollers memory allocation
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Jun 19 2020, 3:41 PM.

Details

Summary

View2DScrollers used the memory manager to allocate memory. This isn't a
problem but in a upcoming change the scrollers will be drawn more often
than it used to (See D8066: Performance: Draw play head as an overlay). To limit the number of allocations and
frees this patch will use the stack for allocation.

Diff Detail

Repository
rB Blender
Branch
cleanup-ui_view2d-scrollers (branched from master)
Build Status
Buildable 8638
Build 8638: arc lint + arc unit

Event Timeline

Jeroen Bakker (jbakker) requested review of this revision.Jun 19 2020, 3:41 PM
Jeroen Bakker (jbakker) created this revision.
Jeroen Bakker (jbakker) retitled this revision from Refactoring: View2D Scrollers allocation to Refactoring: View2DScrollers memory allocation.Jun 19 2020, 3:42 PM
This revision is now accepted and ready to land.Jun 22 2020, 9:35 AM