]> Repositorios git - scryer-prolog.git/commit
optimize put_back_char
authorSkgland <[email protected]>
Sun, 26 Apr 2026 11:43:04 +0000 (13:43 +0200)
committerSkgland <[email protected]>
Sun, 26 Apr 2026 12:13:55 +0000 (14:13 +0200)
commitaf54fb2aba46af538b4564045ba40ba7b854d1d3
treee9d3b60dd2b414d0c4b8a0763e1f59352d3a572e
parentb2dad662706d56c7f80a303a08df507cf3af26ec
optimize put_back_char

Always encode the char directly into the buffer.
Only shift the buffer content if there isn't enough room in the front.
src/parser/char_reader.rs