Remove unsafe block in function sized_configured #17

Closed
opened 2019-07-23 05:06:27 +12:00 by ZephOne · 2 comments
ZephOne commented 2019-07-23 05:06:27 +12:00 (Migrated from github.com)

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.

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.
mikedilger commented 2019-07-23 09:49:34 +12:00 (Migrated from github.com)

I suppose the performance impact is almost always trivial, so I'd merge it if you submitted a PR.

I suppose the performance impact is almost always trivial, so I'd merge it if you submitted a PR.
ZephOne commented 2019-07-23 09:53:25 +12:00 (Migrated from github.com)

Perfect, I got it on my machine. I fork and submit the PR

Perfect, I got it on my machine. I fork and submit the PR
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mikedilger/textnonce#17
No description provided.