Skip to content

Conversation

@bdarcus
Copy link
Owner

@bdarcus bdarcus commented Jan 23, 2026

No description provided.

Refactor the processor crate to improve performance and code
quality.

Key changes:
- Optimize refs_to_string in render.rs by replacing
  map/collect/join chain with a single for loop and
  write!. This reduces intermediate string allocations
  significantly, improving memory efficiency for large
  bibliographies.
- Introduce ProcessorError enum in error.rs using
  thiserror to provide strongly typed, descriptive errors
  instead of bare Strings.
- Update Processor methods to return
  Result<..., ProcessorError> for better error propagation.
- Clean up debug println! statements and improve comments
  throughout the crate.
- Update lib.rs to export the new error module.
Establish project-wide standards for Git commits and Rust
development.

The new rules enforce Conventional Commits with a 50/72 limit
and incorporate performance benchmarking for refactorings.
@bdarcus bdarcus closed this Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants