diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-08-22 14:59:25 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-08-22 17:29:34 +0200 |
| commit | b53077d5f0c293b4d34a14dac0ae39e78255c2ce (patch) | |
| tree | 6238d82ecd72f6c4bb572bcaf4d7c568d083d94d /runtime/lua/vim/range.lua | |
| parent | 47cd769ed5a62db81f4c1d836902bf6c4c43ebd5 (diff) | |
| download | rneovim-b53077d5f0c293b4d34a14dac0ae39e78255c2ce.tar.gz rneovim-b53077d5f0c293b4d34a14dac0ae39e78255c2ce.tar.bz2 rneovim-b53077d5f0c293b4d34a14dac0ae39e78255c2ce.zip | |
fix(coverity): performance inefficiencies (PASS_BY_VALUE)
The perf cost is negligible, but it's easy to address so might as well.
CID 653826: Performance inefficiencies (PASS_BY_VALUE)
/src/nvim/input_cmdatom.c: 385 in atom_push_raw()
384 /// Takes ownership of the atom's allocated members. Caller sets `atom.changed`.
>>> CID 653826: Performance inefficiencies (PASS_BY_VALUE)
>>> Passing parameter atom of type "CmdAtom" (size 176 bytes) by value, which exceeds the low threshold of 128 bytes.
385 void atom_push_raw(bool cascade, CmdAtom atom)
CID 653825: Performance inefficiencies (PASS_BY_VALUE)
/src/nvim/input_cmdatom.c: 438 in atom_stage_set()
436 /// Stages an atom built before its command executes (do_pending_operator() prep-exempt, Visual
437 /// ops), in the command's frame; pushed at frame end, once `changed` is known.
>>> CID 653825: Performance inefficiencies (PASS_BY_VALUE)
>>> Passing parameter atom of type "CmdAtom" (size 176 bytes) by value, which exceeds the low threshold of 128 bytes.
438 static void atom_stage_set(CmdAtom atom)
CID 653824: Performance inefficiencies (PASS_BY_VALUE)
/src/nvim/input_cmdatom.c: 427 in atom_push()
425 /// Pushes an atom (emit + maybe cascade), or drops it if replay/Visual/internal-op already
426 /// in-progress.
>>> CID 653824: Performance inefficiencies (PASS_BY_VALUE)
>>> Passing parameter atom of type "CmdAtom" (size 176 bytes) by value, which exceeds the low threshold of 128 bytes.
427 static void atom_push(bool cascade, CmdAtom atom)
Diffstat (limited to 'runtime/lua/vim/range.lua')
0 files changed, 0 insertions, 0 deletions