You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2026/09/11 19:33:02 UTC

[I] Pre-allocate memory for scalar functions more effectively [sedona-db]

paleolimbot opened a new issue, #1292:
URL: https://github.com/apache/sedona-db/issues/1292

   For most of our scalar functions we do something like this:
   
   ```rust
           let mut builder = BinaryBuilder::with_capacity(
               executor.num_iterations(),
               WKB_MIN_PROBABLE_BYTES * executor.num_iterations(),
           );
   ```
   
   A lot of them, however, can do a better job pre-allocating the output based on previously available information (or potentially a cheap iteration over the values). For example, ST_Boundary output is usually similar to that of the input, and ST_Reverse is always exactly the same as the input.
   
   It's possible this won't make much of a difference but there are at least some functions where this is trivial.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Pre-allocate memory for scalar functions more effectively [sedona-db]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on issue #1292:
URL: https://github.com/apache/sedona-db/issues/1292#issuecomment-6116622394

   Sure! Probably one pattern at a time (e.g., the input-size-is-the-same-as-the-output pattern) unless you specifically had another plan.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Pre-allocate memory for scalar functions more effectively [sedona-db]

Posted by "labyrinthgarden (via GitHub)" <gi...@apache.org>.
labyrinthgarden commented on issue #1292:
URL: https://github.com/apache/sedona-db/issues/1292#issuecomment-6112737469

   Hi! I'd like to work on this issue. Is it okay if I take it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org