Skip to content

Conversation

@TysonAndre
Copy link
Collaborator

Closes #80 - simdjson_is_valid() and other PHP functions would previously return false when out of memory

Closes #79 - reuse buffers for strings less than 1000000 bytes and 100000 depth. (Assumes the depth rarely changes in callers)
(Otherwise, create a brand new parser instance and only use that instance once, after which the megabytes of memory will be reclaimed)

Closes crazyxman#80 - simdjson_is_valid() and other PHP functions would
previously return false when out of memory

- Related to crazyxman#60 - other php apis (using emalloc instead) will also emit
  fatal errors when out of memory and end the process.

Closes crazyxman#79 - reuse buffers for strings less than 1000000 bytes and
100000 depth. (Assumes the depth rarely changes in callers)
@TysonAndre TysonAndre mentioned this pull request Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out of memory errors should be real errors parser.allocate will reallocate buffers - call allocate only to change depth

1 participant