-
Notifications
You must be signed in to change notification settings - Fork 225
Remove msgpack from framework - Part II #2449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
remove_msgpack@23340 aka 20210413.2 vs main ewma over 20 builds from 22975 to 23336 Click to see table
|
CHANGELOG.md
Outdated
|
||
### Changed | ||
|
||
- `kv::Map` is now an alias to `kv::JsonSerialisedMap`, which means all existing applications using `kv::Map` will now require `DECLARE_JSON...` macros (instead of `MSGPACK_DEFINE`) for custom key and value types. Note that this change may affect throughput of existing applications (#2449). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also mention that msgpack is no longer installed or visible in their include paths. So any MSGPACK_DEFINE
s in app code, that were previously necessary, actually need to be removed (and replaced with DECLARE_JSON_...
if they didn't exist.
Also perhaps a suggestion to restore the lost throughput - "use Blit
if you have simple types, or a custom serialiser"?
src/apps/tpcc/app/tpcc_setup.h
Outdated
@@ -131,7 +131,7 @@ namespace tpcc | |||
{ | |||
bool is_original = selected_rows.find(i) != selected_rows.end(); | |||
Stock s = generate_stock(i, wh_id, is_original); | |||
auto stocks = args.tx.rw(tpcc::TpccTables::stocks); | |||
auto stocks = args.tx.rw(TpccTables::stocks); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think all of the changes in this file are unnecessary? Or am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, just think this needs a slightly more explicit warning in the CHANGELOG.
Follow-up from #2343
kv::Map
is no longer serialised with msgpack by default.TODO:
msgpack
dependency folder totest/
as we still usemsgpack
for TPCC.