[Libre-soc-bugs] [Bug 1177] revert unauthorized change to pseudocode language

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Nov 2 07:58:57 GMT 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1177

--- Comment #17 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #16)
> (In reply to Jacob Lifshay from comment #15)
> 
> > actually, now that I think of it, using __slots__ in SelectableInt would
> > probably make it faster than SelectableInt is now. another thing that'd make
> > it faster is not logging in all the SelectableInt methods.
> 
> good ideas. log both of these as "Future"

actually, i'll just add __slots__ when fixing this bug, since it's one line of
code and super easy:
class SelectableInt:
    __slots__ = 'value', 'bits', 'overflow', 'ok'
    ...  # rest of class

deleting the log() calls is also pretty easy, i just haven't done it since i
thought you'd complain about removing debugging code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list