nushell/crates
Devyn Cairns 0e36c43c64
Add BufWriter to ChildStdin on the plugin interface (#12419)
# Description
This speeds up writing messages to the plugin, because otherwise every
individual piece of the messages (not even the entire message) is
written with one syscall, leading to a lot of back and forth with the
kernel.

I learned this by running `strace` to debug something and saw a ton of
`write()` calls.

```nushell
# Before
1..10 | each { timeit { example seq 1 10000 | example sum } } | math avg
269ms 779µs 149ns
# After
> 1..10 | each { timeit { example seq 1 10000 | example sum } } | math avg
39ms 636µs 643ns
```

# User-Facing Changes
- Performance improvement

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-04-06 11:52:27 +08:00
..
nu-cli Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cmd-base Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cmd-dataframe Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cmd-extra Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cmd-lang Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-color-config Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-command Fix stop suggesting --trash when already enabled (issue #12361) (#12362) 2024-04-05 20:28:40 -05:00
nu-engine Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-explore Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-glob Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-json Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-lsp Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-parser Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-path Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-plugin Add BufWriter to ChildStdin on the plugin interface (#12419) 2024-04-06 11:52:27 +08:00
nu-plugin-test-support Improve handling of custom values in plugin examples (#12409) 2024-04-05 21:57:20 -05:00
nu-pretty-hex Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-protocol Improve handling of custom values in plugin examples (#12409) 2024-04-05 21:57:20 -05:00
nu-std Fix testing.nu import of std log (#12392) 2024-04-05 20:29:19 -05:00
nu-system Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-table Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-term-grid Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-test-support Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-utils Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_custom_values Fix deadlock on PluginCustomValue drop (#12418) 2024-04-05 21:57:00 -05:00
nu_plugin_example Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_formats Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_gstat Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_inc Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_python Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_query Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.