Review 14.3 Merged

96396[TASK] Speed up styleguide demo data generation

Benjamin Franzke CR +2 V +2 Normal +176 −9 updated 10/06/26, 09:55

Commit message

Generating the TCA demo data hashed the same password once per
password field. Argon2 is slow by design, so hashing made up most of
the runtime. Hash each plain text password only once and reuse a
single hash for both demo backend users.

Additionally, all caches were flushed before every DataHandler run
on CLI, which the frontend generator executes five times. They are
now flushed once after all records have been written.

Measured runtime of the generator commands on a local SQLite instance:

* `styleguide:generate -c tca`: -9s
  (16 password hashes less, which require ~0.5s each)
* `styleguide:generate -c frontend`: -0.1s
  (4 cache flushes less)

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 1

Files 6

Review log 56

  1. Benjamin Franzke commented on patch set 1 10/06/26, 06:32

    Cherry Picked from branch main.
  2. Benjamin Franzke marked it work in progress 10/06/26, 06:32

  3. core-ci voted on patch set 1 V +1 10/06/26, 06:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110185

  4. Benjamin Franzke marked it ready for review 10/06/26, 09:55

  5. Benjamin Franzke voted on patch set 1 CR +2 V +2 10/06/26, 09:55

  6. Benjamin Franzke merged patch set 2 10/06/26, 09:55