On Thursday, 6 April 2017 at 05:36:52 UTC, Swoorup Joshi wrote:
Self-modifying might be the answer to all sorts of performance problems due to branching.
No it's not! You are throwing away your i-cache AND mess up the branch prediction.
Stefan Koch via Digitalmars-d Fri, 07 Apr 2017 13:47:01 -0700
On Thursday, 6 April 2017 at 05:36:52 UTC, Swoorup Joshi wrote:
Self-modifying might be the answer to all sorts of performance problems due to branching.
No it's not! You are throwing away your i-cache AND mess up the branch prediction.