[Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements
Dan McCabe
zen3d.linux at gmail.com
Tue Jun 28 10:23:51 PDT 2011
On 06/28/2011 09:12 AM, Paul Berry wrote:
> On 27 June 2011 17:35, Keith Packard<keithp at keithp.com> wrote:
>> I'd write the simplest possible code that works now and then consider
>> optimizing it later. This has the advantage that you can get a bunch of
>> tests working and then use those to validate a later, more complicated,
>> implementation.
> I heartily support this plan. As my first CS prof used to say, "get
> it right first, then make it fast".
In general, I agree. Occam's Razor is always a useful device for
choosing between two paths.
However, as indicated to Keith, the request/suggestion by Kenneth looked
very attractive, and indeed, once implemented, resulted in less smaller
code. It was simpler to implement than what I had before and improves
code quality as well. Tastes great, less filling.
cheers, danm
More information about the mesa-dev
mailing list