make it maybe faster
This commit is contained in:
parent
77a99bd5ae
commit
c884cf5bbb
|
@ -3,3 +3,7 @@ members = [
|
||||||
"linkedhashmap",
|
"linkedhashmap",
|
||||||
"web3-proxy",
|
"web3-proxy",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
panic = "abort"
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
FROM rust:1-bullseye as builder
|
FROM rust:1-bullseye as builder
|
||||||
|
|
||||||
|
# potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html
|
||||||
|
ENV RUSTFLAGS "-C target-cpu=native"
|
||||||
|
|
||||||
WORKDIR /usr/src/web3-proxy
|
WORKDIR /usr/src/web3-proxy
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
|
|
Loading…
Reference in New Issue