15 votes

When setting an environment variable gives you a 40x speedup

5 comments

  1. Apos
    Link
    Sherlock is a fitting name after figuring that one out.

    Sherlock is a fitting name after figuring that one out.

    4 votes
  2. [3]
    unknown user
    Link
    And people still make fun of Rob Pike for his dislike of colours in terminals.

    And people still make fun of Rob Pike for his dislike of colours in terminals.

    3 votes
    1. Octofox
      Link Parent
      The color wasn't the thing causing the slowdown though. It was the fact that ls was getting the details for every file to work out what to color it. Also for almost everyone's case the colors help...

      The color wasn't the thing causing the slowdown though. It was the fact that ls was getting the details for every file to work out what to color it. Also for almost everyone's case the colors help and the time to run is instant. Having 10,000 files in one directory isn't very common.

      11 votes
    2. unknown user
      Link Parent
      It is the bane of my existence. So many CLIs are unnecessarily colourful or animated now. And, fine, to each their own, but at least gimme a flag to disable that atrocity, because I might: use a...

      It is the bane of my existence. So many CLIs are unnecessarily colourful or animated now. And, fine, to each their own, but at least gimme a flag to disable that atrocity, because I might:

      • use a dumb terminal, like Emacs' comint and derivatives

      • use a colour scheme that does not accomodate your colours

      • be colour blind

      • or just in disapproval of your subjective aesthetics.

      I wish more devs were aware that the dark-bg terminal emulator is not the only config out there.

      3 votes
  3. mbc
    Link
    I figured this was going to be about how setting LC_ALL to "C" helps with faster grep. Nope, something way more banal. Colors in your ls output. Just shut that crap off and leave it off, guys.

    I figured this was going to be about how setting LC_ALL to "C" helps with faster grep. Nope, something way more banal. Colors in your ls output. Just shut that crap off and leave it off, guys.

    1 vote