From e8796beffc26c2c642c8e62b9427d0f574872771 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 22 Aug 2011 15:50:05 -0700 Subject: [PATCH] Add comment clarifying that the proto2 benchmark is ugly and temporary. --- benchmarks/parsetoproto2.upb.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/benchmarks/parsetoproto2.upb.cc b/benchmarks/parsetoproto2.upb.cc index 75cff886a2..386eeaaa4d 100644 --- a/benchmarks/parsetoproto2.upb.cc +++ b/benchmarks/parsetoproto2.upb.cc @@ -1,4 +1,12 @@ - +// This file is a crime against software engineering. It breaks the +// encapsulation of proto2 in numerous ways, violates the C++ standard +// in others, and generally deserves to have comtempt and scorn heaped +// upon it. +// +// Its purpose is to get an accurate benchmark for how fast upb can +// parse into proto2 data structures. To add proper support for this +// functionality, proto2 would need to expose actual support for the +// operations we are trying to perform here. #define __STDC_LIMIT_MACROS 1 #include "main.c"