[PATCH 0/2] wmd speedup

Eric Pouech eric.pouech at gmail.com
Sat Mar 26 03:50:54 CDT 2022


The following series drastically improves cmd performance by caching
label resolution when executing a batch file.

Testbot is hitting a timeout when running the tests.
See https://bugs.winehq.org/show_bug.cgi?id=52720

Local tests show a reduction of test duration of 90%!
Don't always expect those numbers; in some extreme cases, the patchset
will even slightly increase execution time.

Note: the reason why testbot started timing out is still unknown.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---

Eric Pouech (2):
      programs/cmd: introduce structure BATCH_FILE to hold information about a .cmd file
      programs/cmd: add label => file offset lookup in BATCH_FILE


 programs/cmd/batch.c    | 153 ++++++++++++++++++++++++++++++++++++++--
 programs/cmd/builtins.c |  63 +++--------------
 programs/cmd/wcmd.h     |  19 ++++-
 3 files changed, 172 insertions(+), 63 deletions(-)




More information about the wine-devel mailing list