#terminal-colors #color #text

efcl

The most simple, small, and fast terminal color text library

3 releases

0.1.2 Mar 9, 2023
0.1.1 Nov 12, 2022
0.1.0 Nov 11, 2022

#701 in Command-line interface

Download history 4/week @ 2024-03-13 27/week @ 2024-03-27 30/week @ 2024-04-03

53 downloads per month

MIT license

4KB
53 lines

Efficiency First Color Library (EFCL)

The most simple, small, and fast terminal color text library.

Priorities

  • Runtime speed
  • Dependency size

Why?

Here is a flamegraph of the auto-clock-speed project. In green is the time it takes for colored text to render. That is just over 9% of runtime cpu is taken by color formatting.

image

This is way too long for what we need it for. In auto-clock-speed, color is used sparingly and only a few default colors on top of that.

image

This library is for the most basic text coloring for the terminal and only includes the default terminal colors, no background color or text styles other than bold. This library is for speed.

No runtime deps