From 6cc9d302786ee9e111c9305b60fe0f4938a08b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Sowi=C5=84ski?= <56843159+Ostrzyciel@users.noreply.github.com> Date: Tue, 10 Jan 2023 15:45:08 +0100 Subject: [PATCH] Cleanup (#6) --- rdf.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rdf.proto b/rdf.proto index 34f2b66..d05f458 100644 --- a/rdf.proto +++ b/rdf.proto @@ -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 { }