Skip to content

[BUGFIX] Suppression du freeze au chargement d'un gros fichier JSON (PIX-22512)#83

Closed
aurelie-crouillebois wants to merge 2 commits into
mainfrom
tech-accelerate-json-parse
Closed

[BUGFIX] Suppression du freeze au chargement d'un gros fichier JSON (PIX-22512)#83
aurelie-crouillebois wants to merge 2 commits into
mainfrom
tech-accelerate-json-parse

Conversation

@aurelie-crouillebois

@aurelie-crouillebois aurelie-crouillebois commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

🌱 Problème

Lors de l'ouverture d'un gros module JSON, l'écran freeze. Après plusieurs tests, cela provient notamment du temps pris pour parser le Json.

🐣 Proposition

  • Utiliser une librairie plus rapide pour le parse du JSON que le parser natif.
  • Petit refacto dans index.js pour éviter plusieurs fois editor.getValue() dans un handler

🐝 Pour tester

Ouvrir un méga GROS fichier JSON. Pas de freeze observé sur l'interface (ou très court).

@dianeCdrPix dianeCdrPix changed the title [BUGFIX] Suppression du freeze au chargement d'un gros fichier JSON [BUGFIX] Suppression du freeze au chargement d'un gros fichier JSON (PIX-22512) Apr 22, 2026
@dianeCdrPix dianeCdrPix force-pushed the tech-accelerate-json-parse branch from ac0abf7 to a832bdd Compare April 22, 2026 08:31
@dianeCdrPix dianeCdrPix marked this pull request as ready for review April 22, 2026 08:32
@dianeCdrPix dianeCdrPix force-pushed the tech-accelerate-json-parse branch from a832bdd to 8b81680 Compare April 28, 2026 08:47
@matthiasferraina

Copy link
Copy Markdown
Contributor

Lors du tech time nous avions cru que c'était le JSON.parse qui prenait du temps. On s'est fait avoir par l'utilisation du console.time() qui nous a induits en erreur. En réalité c'est l'utilisation de jsoneditor, et plus particulièrement la génération du DOM du formulaire qui est coûteuse. L'ajout d'une librairie supplémentaire pour un gain marginal ne me semble pas indispensable. Je propose de clôturer cette PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants