Remove unsafe block in function sized_configured #17
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mikedilger/textnonce#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Would it be possible to get rid of the unsafe block in the function sized_configured and use resize instead ? Is it important that spaces of the vector are not initialized before starting to write into the vector ? I am aware that the unsafe block is totally controlled, it's just to avoid presence of unsafe block.
I suppose the performance impact is almost always trivial, so I'd merge it if you submitted a PR.
Perfect, I got it on my machine. I fork and submit the PR