justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Is this true in your experience? blackhole12.blogspot.com/2009/12/memory-management-on-modern-cpu...
Asked by Will (24.234.85.x) on June 21 2012, 10:18pm
Reply on June 21 2012, 11:35pm:
    There's a lot in that post, much of it is vague. Is malloc()/new/etc slow? Yes. Should you avoid memory allocation functions in inner loops? Yes. Do we, the seasoned programmers, do this naturally? Most of the time. When we don't, it usually sticks out like a sore thumb. For me, at least, most of the base classes in WDL are designed to use and reuse memory for the scope of their existence. Often they are member variables of some class (such as a track) which persists, etc. There are no custom allocation systems to build, just sensible use and reuse of existing buffers.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS