Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Updatet may-minihttp(rust) - #6503

Merged
NateBrady23 merged 1 commit into
TechEmpower:masterfrom
Xudong-Huang:master
Apr 5, 2021
Merged

NateBrady23 merged 1 commit into
TechEmpower:masterfrom
Xudong-Huang:master

Conversation

@Xudong-Huang

Copy link
Copy Markdown
Contributor

update rust stable version 1.51
update db update sql
update fortunes template engine
uddate json serialize backend

let mut items = Vec::with_capacity(80);
items.push(Fortune {
fn tell_fortune(&self) -> Result<SmallVec<[Fortune; 32]>, may_postgres::Error> {
let mut items: SmallVec<[_; 32]> = smallvec::smallvec![Fortune {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is going to fail with the new toolset. The array that holds fortunes needs to have dynamic sizing. We test thousands of fortunes during verification process to make sure this is the case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I think SmallVec would fall back to the heap for larger allocations. The doc says " If the data exceeds this limit, the SmallVec will "spill" its data onto the heap, allocating a new buffer to hold it."

@NateBrady23
NateBrady23 merged commit df965ff into TechEmpower:master Apr 5, 2021
andreasrueb pushed a commit to digitallyinduced/IHP-FrameworkBenchmarks that referenced this pull request Apr 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants