soroban-abacus-flashcards/apps/web
Thomas Hallock 08fef59cc5 perf: reduce retry limit from 3000 to 100 in problem generators
**Problem**: Large worksheets with constrained digit ranges were hanging.
Example: 1000 single-digit problems with 100% regrouping = 168,608 retries
for just 100 problems (1,686 retries/problem on average).

**Root Cause**: Only 9 single-digit numbers (1-9) with 100% regrouping
requirement = very few valid unique combinations. The 3000-retry limit
meant millions of iterations for 1000-2000 problem worksheets.

**Solution**: Reduced retry limit from 3000 to 100 in both:
- generateProblems() (addition)
- generateSubtractionProblems()

This allows some duplicate problems when the constraint space is tight,
but prevents the server from hanging on large worksheet generation.

**Impact**: 100-page worksheets should now generate in seconds instead
of timing out.
2025-11-12 08:57:00 -06:00
..
.claude debug: add comprehensive seed tracking logs 2025-11-11 18:42:32 -06:00
.storybook fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
__tests__ fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
content/blog chore: restore stashed work from previous session 2025-11-08 14:59:40 -06:00
data fix: align share persistence with user session logic 2025-11-11 12:03:32 -06:00
docs
drizzle feat: add skill configuration system with interactive 2D difficulty plot 2025-11-11 15:04:28 -06:00
e2e fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
public refactor(worksheets): extract ConfigPanel helper components (Phase 1) 2025-11-08 11:50:49 -06:00
scripts worksheet studio 2025-11-11 11:44:40 -06:00
src perf: reduce retry limit from 3000 to 100 in problem generators 2025-11-12 08:57:00 -06:00
.dockerignore.test
.gitignore
CARD_SORTING_PORT_PLAN.md
COMPLEMENT_RACE_PORT_PLAN.md
DEVELOPMENT_STANDARDS.md
LINTING.md
README.md
biome.jsonc fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
drizzle.config.ts fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
eslint.config.js fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
next-env.d.ts
next.config.js feat: enable production source maps for easier debugging 2025-11-08 20:32:06 -06:00
package.json feat: add worksheet sharing infrastructure with database persistence 2025-11-11 11:17:44 -06:00
panda.config.ts fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
playwright.config.ts fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
pnpm-lock.yaml
server.js fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
svg-processing-test.js fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00
test-arcade-api.sh
test-flashcards-final.pdf
test-flashcards.pdf
test-simplified.pdf
test_fullscreen_persistence.html
test_panda_simple.html
tsconfig.json worksheet studio 2025-11-11 11:44:40 -06:00
tsconfig.server.json
vitest.config.ts fix(worksheets): ten-frames not rendering in mastery mode 2025-11-10 10:06:27 -06:00

README.md

Test deployment - Mon Nov 3 16:31:57 CST 2025