Does stripping whitespace ruin the LLM's understanding?
Surprisingly, no. Modern LLMs like GPT-4 and Claude 3 are incredibly resilient to minified text and missing punctuation. Compressing whitespace allows you to fit significantly more actual data into the same context window.