[Libre-soc-bugs] [Bug 438] New: add caching/memoization to soc.simulator.program.Program

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Jul 24 04:43:02 BST 2020


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

            Bug ID: 438
           Summary: add caching/memoization to
                    soc.simulator.program.Program
           Product: Libre-SOC's first SoC
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: CONFIRMED
          Severity: major
          Priority: ---
         Component: Source Code
          Assignee: lkcl at lkcl.net
          Reporter: programmerjake at gmail.com
                CC: libre-soc-bugs at lists.libre-soc.org
   NLnet milestone: ---

because of how the code is currently laid out, Program needs to be created for
every test case. Program as currently implemented is quite slow, since it needs
to create files on disk and run external programs. The API should be changed to
cache compiled code in memory, try looking up the instructions to compile in a
cache before mucking about on disk.
Importantly: it needs to *NOT* keep a file open for every Program instance.

My random guess is it could speed up div pipe testing by a factor of 2 in the
single-threaded case (more if you don't have a SSD), and easily many more in
the multi-threaded case.

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


More information about the libre-soc-bugs mailing list