Single parsing for MEOS values#754
Merged
mschoema merged 2 commits intoMobilityDB:masterfrom Feb 17, 2026
Merged
Conversation
b5ecdc9 to
31dd871
Compare
Member
|
Similar question as the Oid PR. Are there any benchmarks showing improvements from this PR? This PR is a pit risky if the repeated allocations slow things down. Code looks good, but I'll wait a bit before merging to be sure things did not slow down. |
Member
Author
Member
|
That looks great ! This is a big improvement compared to the double parsing |
mschoema
requested changes
Feb 6, 2026
Member
mschoema
left a comment
There was a problem hiding this comment.
Looks good, but there's just a small thing to fix that was reported by codacy
mschoema
approved these changes
Feb 17, 2026
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 25, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 25, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 25, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 25, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 25, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 25, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 25, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 25, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 26, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 26, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 26, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 26, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 27, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 30, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 31, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
estebanzimanyi
added a commit
to estebanzimanyi/MobilityDB
that referenced
this pull request
Mar 31, 2026
PR MobilityDB#754 added the MeosArray data type for enabling a single-parsing of temporal values. This PR enables single-parsing of spanset types. For this, we enabled a MeosArray to store fixed-length structures. This PR also enables a faster version of the PostGIS function ST_MinimumBounding where the array collects the points of a geometry minimizing memory allocation. This will be added in a subsequent PR.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR enables a single parsing for MEOS values using an expandable array.
When parsing a value composed of other values, such as a temporal sequence composed of temporal instants, at the beginning we don't know the number of composing values in the text string. Previously we parsed once the string, and after knowing the number of values, we create an array for holding the values with a
pallocand then, the string was reparsed again saving the values in the array. The new expandable array data structure enables a single parsing.