Skip to content

Reduce clarity-repl scope and coupling #2261

@hugo-stacks

Description

@hugo-stacks

clarity-repl is the biggest component of Clarinet (~15k LoC, 28% of the project).

As a result it can be long to build.
Additionally, many other components depend on it.

Eventually, the goal is have smaller, more focused components, and reduce coupling between each.

This has two goals:

  • make the code base easier to navigate
  • speed up the feedback loop by reducing compile time

Running

$ touch components/clarity-repl/src/repl/mod.rs && cargo build --timings
$ open target/cargo-timings/cargo-timing.html 

touch a clarinet-repl file to force the rebuild.
Result obviously depends on the machine used itself

Image

Metadata

Metadata

Assignees

Labels

refactoringCode maintenance and quality improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions