[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:27:00 GMT 2023


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

--- Comment #15 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #13)
> (In reply to Jacob Lifshay from comment #12)
> 
> > I don't see how that affects performance.
> 
> integers in python have always been a special high-performance
> path in the python byte-code interpreter.

i didn't say don't use an integer -- you can make a bitstring out of an
integer, like SelectableInt does (except SelectableInt also has some extraneous
fields: ok and overflow).

though, if we had a C extension for bitstrings, it'd probably be faster than
SelectableInt is (though maybe harder to understand).

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.

though, improving SelectableInt probably won't change the overall simulator's
speed by much, since last time I benchmarked it, nmigen's simulator for the
decoder was taking up like 50% of the time.

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


More information about the libre-soc-bugs mailing list