hide-org / hide

🤖 Headless IDE for AI agents
https://hide.sh
MIT License
129 stars 5 forks source link

pkg/model: remove bufio from NewLines() #106

Closed aleh-null closed 1 month ago

aleh-null commented 1 month ago

Typically bufio is used when riding directly from a file (local/remove). It helps to optimise reads, by reading in chunks corresponding to a buffer size. In our case, the data is already read and is in memory. Simple string split should do the job and help to avoid issues like #101. Also I think it would be more efficient.