certain versions of the bee movie script interact extremely poorly with our markdown parsing stack and take several tens of seconds to parse if used in people’s bios or posts. we are not sharing which versions of the bee movie script those are publicly, but they’re out there.
Notes
- parse time for offending version through remark CLI (
time pnpx remark bee-movie-repro.md --no-stdout
; note: n = 1, so very noisy):
- remark-parse alone: 460ms user CPU;
- remark-parse + remark-gfm: 37.61s user CPU;
- … + remark-rehype: 33.81s user CPU;
- … + rehype-raw: 45.33s user CPU;
- … + rehype-sanitize: 37.78s user CPU;
- … + rehype-external-links: 44.81s user CPU;
- everything minus remark-gfm: 500ms user CPU
- jae landed a mitigation for this today. more details are available at https://cohost.org/staff/post/68302-a-mitigation-for-the — colin, 7/28