tikv/tikv

Take mutable reference instead of moving in callbacks

Offen

#4.881 geöffnet am 12.06.2019

 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.189 Forks)batch import
difficulty/easyhelp wantedsig/rafttype/enhancement

Repository-Metriken

Stars
 (15.922 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 28T 9h) (68 gemergte PRs in 30 T)

Beschreibung

Most of our callbacks just consume part of the arguments, which are usually protobuf messages. Protobuf messages are usually too big in memory to be moved around frequently. If they are moved by pointers, a lot of memory copy can be avoided.

Contributor Guide