nushell/crates/nu-command/src
Stefan Holderbach 659da3c4a4
Make ANSI stripping lazy in more places (#4380)
Same rationale as in #4378

Also accelerate `grid`

before:

```
Command being timed: "./eager_nu -c for i in 0..100000 { echo whatever } | grid"
        User time (seconds): 0.21
        System time (seconds): 0.05
        Percent of CPU this job got: 36%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.71
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 48112
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 0
        Minor (reclaiming a frame) page faults: 10580
        Voluntary context switches: 266
        Involuntary context switches: 2595
        Swaps: 0
        File system inputs: 0
        File system outputs: 0
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 0
```

after:

```
Command being timed: "./lazy_nu -c for i in 0..100000 { echo whatever } | grid"
        User time (seconds): 0.14
        System time (seconds): 0.05
        Percent of CPU this job got: 33%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.60
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 48272
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 1
        Minor (reclaiming a frame) page faults: 10582
        Voluntary context switches: 286
        Involuntary context switches: 831
        Swaps: 0
        File system inputs: 56
        File system outputs: 0
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 0
```
2022-02-08 18:25:31 -06:00
..
conversions Make PipelineData helpers collect rawstreams (#969) 2022-02-07 07:44:18 -05:00
core_commands Switch more commands to redirecting blocks (#956) 2022-02-05 21:03:06 -05:00
dataframe Highlight help tutor (#838) 2022-01-25 02:05:19 +11:00
date Rename some files (#952) 2022-02-05 12:35:02 -05:00
env Allow let-env to be dynamic (#940) 2022-02-04 16:19:13 -05:00
experimental Allow viewing the source code of blocks (#894) 2022-01-31 00:05:25 +02:00
filesystem fix ls and ls tests (#931) 2022-02-04 14:32:13 -06:00
filters Support records in reject command (#4373) 2022-02-08 15:57:46 -05:00
formats Command tests (#922) 2022-02-03 21:01:45 -05:00
generators Port seq command (#755) 2022-01-17 00:52:41 +11:00
hash Rename some files (#952) 2022-02-05 12:35:02 -05:00
math Rename some files (#952) 2022-02-05 12:35:02 -05:00
network Rename some files (#952) 2022-02-05 12:35:02 -05:00
path Rename some files (#952) 2022-02-05 12:35:02 -05:00
platform Rename some files (#952) 2022-02-05 12:35:02 -05:00
random Rename some files (#952) 2022-02-05 12:35:02 -05:00
shells Fix 'enter' to expand path before checking for it (#4370) 2022-02-08 11:21:17 -05:00
strings Make PipelineData helpers collect rawstreams (#969) 2022-02-07 07:44:18 -05:00
system Command tests (#922) 2022-02-03 21:01:45 -05:00
viewers Make ANSI stripping lazy in more places (#4380) 2022-02-08 18:25:31 -06:00
default_context.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
example_test.rs Port merge command from Nushell (#808) 2022-01-22 01:50:26 +02:00
lib.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00