Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-2332

Re-implement Execution using threads

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • admin
    • None

      org.openjdk.skara.process.Execution is currently implemented using file I/O. For every execution, two files are created: one to capture STDOUT and another one to capture STDERR. While such an approach is simple, it's not particularly performant and risks leaving many unattended temporary files.

      During a local test run, 283,756 files are created, written to, read, and deleted. A preliminary, ad-hoc testing suggests that changing file I/O to virtual threads saves some 15 seconds of runtime for a local test run.

            prappo Pavel Rappo
            prappo Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: