<div dir="ltr"><div>I like the suggestion to add an optional set of extra flags at the end of the geometry, as a nice backwards-compatible way to store extra information when we need the ability.  But it seems like overkill for the current situation, where we do have flags available in the current structure.  Can we not get 99% of the benefits (avoid repeatedly testing geometries known to be valid) by storing the single "valid / unknown" flag in the current structure?</div><div><br></div><div>On unrelated note, do we need to further quality what we mean by "valid" ?  Is SFCGAL validity always the same as GEOS validity ?</div><div><br></div><div>Dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 29, 2016 at 1:54 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Feb 29, 2016 at 09:23:13AM -0800, Paul Ramsey wrote:<br>
> I have another (better?) option:<br>
> Use one of the existing bits be an "extra-8-bytes" flag. That way we<br>
> can have lots of extra info if we want, in cases where fluff isn't an<br>
> issue, and without ruining alignment.<br>
> Thanks Hugo for the idea,<br>
<br>
</span>Yes, "extra-8-bytes" is the alternative.<br>
But Hugo idea could be limited to "1-byte" (with another "extend" bit<br>
in case we need more) w/out affecting alignment.<br>
So I guess it all depends on how much we want to reduce on-disk size<br>
(assuming a single byte would not be padded to next 8-bytes boundary<br>
on disk write...).<br>
<div class="HOEnZb"><div class="h5"><br>
--strk;<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-devel</a></div></div></blockquote></div><br></div>