Packages
Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.
Current section
Files
Jump to
Current section
Files
lib/raxol/terminal/escape/parsers/csi_parser_cached.ex
defmodule Raxol.Terminal.Escape.Parsers.CSIParserCached do
@moduledoc """
Cached version of CSI parser for performance optimization.
This module provides cached parsing of CSI sequences to avoid
redundant parsing operations.
"""
alias Raxol.Terminal.Escape.Parsers.CSIParser
@doc """
Parses a CSI sequence with caching.
"""
def parse(sequence) do
# NOTE: Direct parsing without caching. Future enhancement will add
# memoization for frequently-used CSI sequences to improve performance.
CSIParser.parse(sequence)
end
@doc """
Warms up the cache with common sequences.
"""
def warm_cache do
# Stub for now
:ok
end
end