Skip to content

Commit

Permalink
Update nixd/lib/Eval/AttrSetProvider.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jörg Thalheim <[email protected]>
  • Loading branch information
inclyc and Mic92 authored Nov 20, 2024
1 parent 17db329 commit 59f6dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixd/lib/Eval/AttrSetProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ std::vector<std::string> completeNames(nix::Value &Scope,
// FIXME: we may want to use "Trie" to speedup the string searching.
// However as my (roughtly) profiling the critical in this loop is
// evaluating package details.
// "Trie"s may not beneficial becausae it cannot speedup eval.
// "Trie"s may not beneficial because it cannot speedup eval.
for (const auto *AttrPtr : Scope.attrs()->lexicographicOrder(State.symbols)) {
const nix::Attr &Attr = *AttrPtr;
const std::string_view Name = State.symbols[Attr.name];
Expand Down

0 comments on commit 59f6dce

Please sign in to comment.