justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
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:
Are you programming for cache? What's your idea about data oriented programming?
Asked by Ruchira (123.231.105.x) on March 27 2024, 6:12pm
Reply on March 29 2024, 12:20pm:
Cache considerations in performance sensitive code are definitely a thing!
Comments:
Posted by Ruchira (123.231.105.x) on March 29 2024, 9:17pm:
Is there any guide to follow?
Posted by
Justin
on March 30 2024, 1:37pm:
Not off the top of my head ... when something ends up taking more CPU time than you expect it to, then it's useful to keep cache effects in mind. e.g. a cache line is typically something like 64 bytes, meaning if you step through a large data set sparsely and multiple times you'll end up thrashing the cache, etc.
Posted by
Justin
on March 30 2024, 1:39pm:
Here's an example of changing the order of things in memory in order to reduce cache thrash:
github.com/justinfrankel/WDL/commi...
Posted by Ruchira (123.231.105.x) on April 1 2024, 3:08pm:
Thanks
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2024 Justin Frankel
.
|
RSS