Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
/ leveldown Public archive

Add Entry struct to abstract away key-value pairs#785

Merged
vweevers merged 2 commits intomasterfrom
entry-struct
Sep 24, 2021
Merged

Add Entry struct to abstract away key-value pairs#785
vweevers merged 2 commits intomasterfrom
entry-struct

Conversation

@vweevers
Copy link
Copy Markdown
Member

Small thing. Prep work that will reduce the amount of code needed for all() and getMany() (Level/abstract-leveldown#380).

Has no impact on performance.

iterate 1632488598249

@vweevers vweevers added the semver-patch Bug fixes that are backward compatible label Sep 24, 2021
@vweevers vweevers merged commit 576d135 into master Sep 24, 2021
@vweevers vweevers deleted the entry-struct branch September 24, 2021 16:02
const uint32_t blockRestartInterval = Uint32Property(env, options,
"blockRestartInterval", 16);
uint32_t maxFileSize = Uint32Property(env, options, "maxFileSize", 2 << 20);
const uint32_t maxFileSize = Uint32Property(env, options, "maxFileSize", 2 << 20);
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.

const ❤️ Good thinking. Very good practice in c++ to use const as much as possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

semver-patch Bug fixes that are backward compatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants