linksplatform / linksplatform/doublets-rs
Inline initiative
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6
- Forks
- 0
- Avg merge
- 1h 37m
- Merged PRs (30d)
- 1
Description
Add `#[inline]` attribute to relevant places
#### `#[inline]` – any obvious functions:
```rust
fn try_get_link(&self, index: T) -> Result, Error> {
self.get_link(index).ok_or(Error::NotExists(index))
}
```
#### `#[inline(always)]` – any hard delegations:
```rust
pub fn len(&self) -> usize {
self.0.len()
}
```
#### `#[cfg_attr(feature = "inline-more", inline)]` – some questionable or rarely used or internal functions:
```rust
// from united/store.rs:194
fn is_unused(&self, link: T) -> bool {
// impl . . .
}
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the Rust functions named in the issue, including try_get_link, len, and united/store.rs:194. Review nearby functions to classify obvious functions, hard delegations, and questionable or internal functions, then verify that the appropriate inline attributes and inline-more cfg_attr annotations cover the intended cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100