blob: 43ed2bae6242ade951a1d6f8a7b6bfa9dd58d300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
\todo{Introduction}
\todo{Primrose adaptations}
\section{Tooling integration}
As well as a standalone compiler, the Rust toolchain provides an official package manager, which is widely adopted.
We interface with cargo through the \code{cargo metadata} command, which allows us to work seamlessly with virtually any Rust project.
From cargo, we retrieve information about the user's project source directories, the available benchmarks and tests, and the location of the build cache.
\section{Cost model generation}
Generation of cost models is implemented in three locations:
\begin{itemize}
\item The \code{candelabra_benchmarker} crate, which provides code for benchmarking anything that implements the primrose library's traits
\item The \code{candelabra::cost::benchmark} module, which generates, runs, and parses benchmarks for container types in the primrose library
\item The \code{candelabra::cost::fit} module, which fits a linear regression model to a set of observations and allows for
\end{itemize}
\todo{Fitting of cost models}
\todo{Profiling wrapper}
\todo{Selection and comparison code}
\todo{Caching}
\todo{Other implementation details?}
|