This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": "./paths.json", | |
"compilerOptions": { | |
"target": "ES6", | |
"lib": [ | |
"dom", | |
"dom.iterable", | |
"esnext" | |
], | |
"downlevelIteration": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user.events.2days: | |
max-mb: 40000 | |
max-hr: 48 | |
schema: "ROW<__time:long,app:tinyint,country:string,gender:tinyint,age:tinyint,value:int>" | |
data: s3 | |
loader: Swap | |
source: <path> | |
backup: s3://nebula/n303/ | |
format: json | |
columns: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline bool f1ni(int i) { | |
return i % 2 == 0; | |
} | |
TEST(OptionalTest, TestOptionalPerf) { | |
auto f2 = [](int i) -> std::optional<int> { | |
if (i % 2 == 0) { | |
return {}; | |
} | |
return i + 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Deserialize by pulling the | |
- static grpc::Status Deserialize(grpc_byte_buffer *buffer, | |
+ static grpc::Status Deserialize(ByteBuffer *bb, | |
flatbuffers::grpc::Message<T> *msg) { | |
- if (!buffer) { | |
+ grpc_byte_buffer* buffer = nullptr; | |
+ if (!bb || !(buffer = bb->c_buffer())) { | |
return ::grpc::Status(::grpc::StatusCode::INTERNAL, "No payload"); | |
} | |
// Check if this is a single uncompressed slice. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Is this ByteBuffer valid? | |
bool Valid() const { return (buffer_ != nullptr); } | |
+ grpc_byte_buffer* c_buffer() { return buffer_; } | |
private: | |
friend class SerializationTraits<ByteBuffer, void>; | |
friend class ServerInterface; | |
Context not available. | |
buffer_ = buf; |