alexeyraspopov / picocolors

The tiniest and the fastest library for terminal output formatting with ANSI colors
ISC License
1.34k stars 44 forks source link

Replace substring with slice #65

Open alexeyten opened 5 months ago

alexeyten commented 5 months ago

We are counting bytes so this will shave off 8 of them :smile:

Difference between substring and slice is irrelevant here because 0 <= cursor < index

alexeyten commented 5 months ago

@alexeyraspopov ping

43081j commented 4 months ago

its actually slower for whatever reason. the speed is more important than the bytes saved in this case imo