Re: [fpc-devel] Case block binary search proposal

2018-08-05 Thread J. Gareth Moreton
P.S. The Wiki topic isn't just for the binary search proposal, and can easily be expanded for proposed and existing paradigms, and become an advanced programming guide. For example, I would be grateful for documentation on how the jump table system works. Gareth aka. Kit On Sun 05/08/18 14:38

[fpc-devel] Case block binary search proposal

2018-08-05 Thread J. Gareth Moreton
Hi everyone, This one has been on my backburner for a while.  I spent the last few days writing up some theory on the process, and feel this might be a good optimisation for case blocks whose branches call identically-structured functions, like in the peephole optimizer and the code formatter