reduces constant overhead
(&self)
| 1132 | /// Get a searcher that isn't Sync. |
| 1133 | #[inline(always)] // reduces constant overhead |
| 1134 | pub fn searcher(&self) -> ExecNoSync { |
| 1135 | let create = || { |
| 1136 | Box::new(RefCell::new(ProgramCacheInner::new(&self.ro))) |
| 1137 | }; |
| 1138 | ExecNoSync { |
| 1139 | ro: &self.ro, // a clone is too expensive here! (and not needed) |
| 1140 | cache: self.cache.get_or(create), |
| 1141 | } |
| 1142 | } |
| 1143 | |
| 1144 | /// Get a searcher that isn't Sync and can match on &str. |
| 1145 | #[inline(always)] // reduces constant overhead |
no outgoing calls
no test coverage detected