Tyson Andre

Results 313 issues of Tyson Andre

- reduce memory usage, fragmentation - implement ListInterface

- `new LRUCache(?int $maxSize = null)` - Make unshift() operations faster, track the offset of the start of the buckets for LRUCache, to speed up iteration and removal - Add...

Support keys 0..n-1 implicitly, with each node tracking the count.

```php php > var_export(json_decode('{"0":1,"\u0000":2}', true)); N_ERROR)); array ( 0 => 1, '' . "\0" . '' => 2, ) php > var_export(json_decode('{"0":1,"\u0000":2}', false, JSON_PARTIAL_OUTPUT_ON_ERROR)); NULL php > var_export(json_last_error_msg()); 'The decoded...

This would be convenient when trying to replicate algorithms without the overhead of bc/gmp. Not sure of overhead.

This may be useful for reducing memory usage when decoding data in userland, during program startup for long-running programs, etc

Similar to https://docs.python.org/3/library/collections.html#collections.defaultdict