|
|
|
|
|
by a_e_k
1009 days ago
|
|
I've long had the idea for trying to write a Valgrind tool to help with this by analyzing struct usage. Something to profile how hot and cold the various fields of my structs are, and also to correlate which fields in a struct are frequently accessed together (i.e., within N cycles of each other). A tool for the profile part of "profile before optimizing" to go with the optimizations you mentioned. I'm not sure how feasible this is. But if someone else wants to steal this idea and implement it for me, be my guest. :-) |
|