43081j / 43081j/fast-wrap-ansi

Perf: skip ahead when parsing URLs

オープン
#53 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
11
フォーク
3
平均マージ
9時間 52分
マージ済み PR(30日)
2

説明

https://github.com/43081j/fast-wrap-ansi/blob/4559b83e5dfa9eb3ccb5ffc5155b3b769b82e1c7/src/main.ts#L229-L231

here we know for sure the characters ahead are the URL we just matched

currently, we iterate through these one by one and append them.

maybe we can squeeze more performance out of this by immediately appending the entire URL and skipping the `i` ahead

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。