Skip to content

Commit

Permalink
Cleanup (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel authored Jan 10, 2023
1 parent 155b9ce commit 6cc9d30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rdf.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ message RdfIri {

message RdfLiteral {
string lex = 1;
// TODO: use literalKind.Empty instead of simple=true?
// Will it be smaller and/or faster?
oneof literalKind {
bool simple = 2;
RdfLiteralSimple simple = 2;
string langtag = 3;
uint32 datatype = 4;
}
}

// TODO: compare size & perf of empty message vs simple value (bool)
message RdfLiteralSimple {
}

message RdfRepeat {
}

Expand Down

0 comments on commit 6cc9d30

Please sign in to comment.