Skip to content

Commit

Permalink
perf: remove unnecessary clone (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill authored May 29, 2024
1 parent c990685 commit a687f3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/blueprint/into_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ fn to_type(def: &Definition) -> dynamic::Type {
let ctx: ResolverContext = ctx.into();
let ctx = EvaluationContext::new(req_ctx, &ctx);
FieldFuture::from_value(
ctx.path_value(&[field_name])
.map(|a| a.into_owned().to_owned()),
ctx.path_value(&[field_name]).map(|a| a.into_owned()),
)
}
Some(expr) => {
Expand Down

1 comment on commit a687f3d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 6.65ms 2.94ms 70.09ms 72.61%
Req/Sec 3.81k 198.84 4.63k 92.08%

454370 requests in 30.02s, 2.28GB read

Requests/sec: 15134.80

Transfer/sec: 77.68MB

Please sign in to comment.