unsloth/studio/frontend/src/lib
Michael Han 2989b178e1
perf(studio): remove quadratic region scan in LaTeX preprocessing (#7538)
findCodeBlockRegions scanned every region found so far for each inline code
match, and accepted inline spans were appended to the same array, making it
quadratic in the number of inline spans. preprocessLaTeX runs on the full
message text every animation frame while streaming and calls it twice.

Fenced and inline matches are both ascending and non-overlapping, so walk the
fenced list with a cursor instead. Only fenced regions can contain an inline
span, so previously accepted inline regions never needed checking.

34,670 chars with 2,100 inline spans: 5.51ms per call to 0.12ms.

Co-authored-by: shimmyshimmer <info@unsloth.ai>
2026-07-28 05:47:48 -07:00
..
api-base.ts Harden Tauri release flow (#5341) 2026-05-12 20:30:20 -07:00
audio-utils.ts Update license headers 2026-03-12 17:23:10 +00:00
bulb-icon.tsx Chat: match reasoning thinking icon to the composer bulb (#6607) 2026-06-23 05:16:39 -07:00
chevron-icons.ts Unsloth: appearance palettes, customization options, and control restyle (#7077) 2026-07-14 05:12:08 -07:00
copy-to-clipboard.ts Studio frontend: reduce and tighten code comments (#6099) 2026-06-08 23:10:35 -07:00
format-fastapi-error.ts Studio frontend: reduce and tighten code comments (#6099) 2026-06-08 23:10:35 -07:00
latex.ts perf(studio): remove quadratic region scan in LaTeX preprocessing (#7538) 2026-07-28 05:47:48 -07:00
mic-icon.tsx Studio: add Voice settings tab (dictation, dictionary, read aloud) (#7074) 2026-07-15 07:55:39 -07:00
model-size.ts Studio: clean-room compact RAG (knowledge bases, hybrid search, fast indexing) (#5910) 2026-06-09 21:17:04 -07:00
native-files.ts Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
native-notifications.ts Add Tauri native notifications (#5273) 2026-05-05 00:09:48 -07:00
open-link.ts Studio frontend: reduce and tighten code comments (#6099) 2026-06-08 23:10:35 -07:00
safe-markdown-url.ts Studio: add Deep Research (#7219) 2026-07-26 23:36:02 -07:00
sparkles-icon.tsx studio: use Hugeicons AI Security glyph for Run automatically (#7409) 2026-07-24 04:48:29 -07:00
tauri-diagnostics.ts Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
tick-icon.ts Studio: clearer check mark and even plus-menu hover padding (#6253) 2026-06-12 06:44:08 -07:00
toast.ts Studio: keep automatic model loading toast visible until completion (#7425) 2026-07-28 00:16:28 -03:00
utils.ts Studio: register text-ui tokens with tailwind-merge so cn() keeps them (#7396) 2026-07-24 00:48:54 -07:00
vram.ts Studio frontend: reduce and tighten code comments (#6099) 2026-06-08 23:10:35 -07:00