Re: json stream filter
| From: | Tamara Temple | Date: | Sat, 22 Jun 2013 20:05:46 +0000 |
| Subject: | Re: json stream filter | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321457@lists.php.net to get a copy of this message | ||
Markus Staab <maggus.staab@gmail.com> wrote:
> first post on the list, so please bare with me ;-)
No, I'm getting nekkee with you... :)
> we are handling a lot of cache files in our apps and use json to persist
> those contents on the filesystem, because it seems to be the fastest
> possible way to read/write files with PHP.
>
> Since I discovered stream-filters,
> http://www.php.net/manual/en/filters.php,
> we use those also for base64 encoding files before sending them over the
> wire, which preserves a lot of memory and allows even bigger files.
>
> Would it make sense to also have a native stream filter for fileformats
> like JSON, to get maximum performance for reading/writing those (and also
> to be able to write big files)?
I think this could be a real win for some folks; I personally haven't
got a use for it at the moment, but I can see where it would make
a lot of sense of some applications.