##// END OF EJS Templates
rust: remove excessive calls to `#[timed]`...
Raphaël Gomès -
r50271:6b04f702 stable
parent child Browse files
Show More
@@ -5,7 +5,6 b' use std::ops::Deref;'
5 use std::path::Path;
5 use std::path::Path;
6
6
7 use flate2::read::ZlibDecoder;
7 use flate2::read::ZlibDecoder;
8 use micro_timer::timed;
9 use sha1::{Digest, Sha1};
8 use sha1::{Digest, Sha1};
10 use zstd;
9 use zstd;
11
10
@@ -83,7 +82,6 b' impl Revlog {'
83 ///
82 ///
84 /// It will also open the associated data file if index and data are not
83 /// It will also open the associated data file if index and data are not
85 /// interleaved.
84 /// interleaved.
86 #[timed]
87 pub fn open(
85 pub fn open(
88 store_vfs: &Vfs,
86 store_vfs: &Vfs,
89 index_path: impl AsRef<Path>,
87 index_path: impl AsRef<Path>,
@@ -157,7 +155,6 b' impl Revlog {'
157
155
158 /// Return the revision number for the given node ID, if it exists in this
156 /// Return the revision number for the given node ID, if it exists in this
159 /// revlog
157 /// revlog
160 #[timed]
161 pub fn rev_from_node(
158 pub fn rev_from_node(
162 &self,
159 &self,
163 node: NodePrefix,
160 node: NodePrefix,
@@ -207,7 +204,6 b' impl Revlog {'
207 /// All entries required to build the final data out of deltas will be
204 /// All entries required to build the final data out of deltas will be
208 /// retrieved as needed, and the deltas will be applied to the inital
205 /// retrieved as needed, and the deltas will be applied to the inital
209 /// snapshot to rebuild the final data.
206 /// snapshot to rebuild the final data.
210 #[timed]
211 pub fn get_rev_data(
207 pub fn get_rev_data(
212 &self,
208 &self,
213 rev: Revision,
209 rev: Revision,
@@ -242,7 +238,6 b' impl Revlog {'
242
238
243 /// Build the full data of a revision out its snapshot
239 /// Build the full data of a revision out its snapshot
244 /// and its deltas.
240 /// and its deltas.
245 #[timed]
246 fn build_data_from_deltas(
241 fn build_data_from_deltas(
247 snapshot: RevlogEntry,
242 snapshot: RevlogEntry,
248 deltas: &[RevlogEntry],
243 deltas: &[RevlogEntry],
General Comments 0
You need to be logged in to leave comments. Login now