fish-shell/fish-rust/src
Johannes Altmanninger 8d2fa4ae95 fish_indent: fix accidentally quadratic perf regression due to chars().last()
Iterator::last() consumes the entire iterator, even for DoubleEndedIterator,
see https://github.com/rust-lang/rust/pull/28125#issuecomment-145070161

Because of this, "at_line_start()" took 90% of

    fish_indent share/completions/git.fish

making it take 1000ms instead of 30 ms. Fix that.
2024-01-07 19:04:54 +01:00
..
builtins Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
cfg Port make_autoclose_pipes, fd_event_signaller_t 2023-12-10 14:35:43 +01:00
env Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
fork_exec Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
history Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
tests Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
universal_notifier Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
widecharwidth Port widecharwidth 2023-04-16 17:21:54 +02:00
wutil Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
abbrs.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
ast.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
autoload.rs Turn FFI tests into native Rust tests 2024-01-07 12:12:09 +01:00
color.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
common.rs fish_indent: fix accidentally quadratic perf regression due to chars().last() 2024-01-07 19:04:54 +01:00
compat.c Port builtin ulimit 2023-12-03 11:39:15 +01:00
compat.rs Use c_char instead of a fixed i8 2023-12-10 17:04:01 +01:00
complete.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
curses.rs Add keys to our curses Term structure 2023-12-31 15:44:50 -08:00
editable_line.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
env_dispatch.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
env_universal_common.rs Add FFI bindings to universal notifiers and adopt in input_common 2023-11-26 17:29:53 -08:00
event.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
exec.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
expand.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
fallback.rs fix typo 2023-12-29 14:54:51 +01:00
fd_monitor.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
fd_readable_set.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
fds.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
ffi.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
fish.rs Port wgettext wrapper from wutil.cpp 2024-01-07 12:12:09 +01:00
fish_indent.rs fish_indent: fix accidentally quadratic perf regression due to chars().last() 2024-01-07 19:04:54 +01:00
fish_key_reader.rs Port shell_modes 2024-01-07 12:12:09 +01:00
flog.rs Remove some obsolete bridged C++ functions 2024-01-07 12:12:09 +01:00
function.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
future.rs Port reader 2024-01-07 00:54:22 +01:00
future_feature_flags.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
global_safety.rs Port execution 2023-11-15 11:09:48 +01:00
highlight.rs fish_indent: fix accidentally quadratic perf regression due to chars().last() 2024-01-07 19:04:54 +01:00
history.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
input.rs Turn FFI tests into native Rust tests 2024-01-07 12:12:09 +01:00
input_common.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
io.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
job_group.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
kill.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
lib.rs Remove ffi_init 2024-01-07 14:37:35 +01:00
locale.rs Implement some locale pieces 2023-03-26 17:40:24 -07:00
nix.rs Replace some direct uses of libc with wrappers (#10090) 2023-11-19 20:07:24 +01:00
null_terminated_array.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
operation_context.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
output.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
pager.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
parse_constants.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
parse_execution.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
parse_tree.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
parse_util.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
parser.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
parser_keywords.rs Adopt the wchar prelude 2023-08-09 15:00:58 +02:00
path.rs fish_indent: fix accidentally quadratic perf regression due to chars().last() 2024-01-07 19:04:54 +01:00
pointer.rs Fix a clippy lint in ConstPointer 2023-11-25 19:12:14 -08:00
print_help.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
proc.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
re.rs Adopt the wchar prelude 2023-08-09 15:00:58 +02:00
reader.rs fish_indent: fix accidentally quadratic perf regression due to chars().last() 2024-01-07 19:04:54 +01:00
reader_history_search.rs Port reader 2024-01-07 00:54:22 +01:00
redirection.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
screen.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
signal.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
termsize.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
threads.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
timer.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
tinyexpr.rs format 2023-08-25 16:28:41 +02:00
tokenizer.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
topic_monitor.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
trace.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
util.rs Remove FFI code and C++ files 2024-01-07 12:12:09 +01:00
wait_handle.rs Port execution 2023-11-15 11:09:48 +01:00
wchar.rs Remove some unnecessary imports and suppress unused import warnings 2023-12-28 22:11:50 -08:00
wchar_ext.rs Port reader 2024-01-07 00:54:22 +01:00
wcstringutil.rs Port reader 2024-01-07 00:54:22 +01:00
wgetopt.rs Port execution 2023-11-15 11:09:48 +01:00
wildcard.rs fish_indent: fix accidentally quadratic perf regression due to chars().last() 2024-01-07 19:04:54 +01:00