I heard that data pushed onto the C ++ stack most likely appears in the CPU cache.http://www.gamedev.net/topic/564817-stack-and-cache-question-optimizing-sw-in-c/#entry4617168
"The stack is the most efficient place to store data because the same range of memory addresses is reused over and over."Due to the implied order of operations, the most commonly used stack data is almost certainly always in the L1 cache.
"The stack is the most efficient place to store data because the same range of memory addresses is reused over and over."
Due to the implied order of operations, the most commonly used stack data is almost certainly always in the L1 cache.
It's true?
I mean, is it better to try to store frequently used data on the stack than on the heap?
++ Standard - : , ..
, ++, ( ).
, . : L1 (32k?) , , L2. 64k ( , ), 0, 16k, 32k 48k : L2.
, , , . ( ).
, :
, , .
Source: https://habr.com/ru/post/1541269/More articles:Test output at the command line jasmine karma grunt - gruntjscollection_select and options_for_select not working - ruby-on-rails-4Git merge breaks - Best practice - gitWhat does -S -cwd -r -j -l mean when running a python script? - pythonSend Xml string through POST method in java - javaJava Docs says interfaces cannot have fields. Why? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1541272/passing-json-data-to-a-webapi-with-special-characters-results-to-null&usg=ALkJrhgSb4YBou2Mj4bbbu3byGxKGAjRRwProblem with Sprite Kit, how to prevent brake sound - iosMail values are not set due to special characters in the Web API - c #org.springframework.core.env.PropertySourcesPropertyResolver значение печати в режиме отладки - javaAll Articles