Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Use stream wrapper to extract files on demand. #1

@kherge

Description

@kherge

Problem

After creating some rough benchmarks for runtime performance comparison between PHAR and Sqon, I realized that the first run for a PHAR kicked Sqon's butt. I believe that this has something to do with the phar extension's support for stream wrapping. An attempt should be made to offer something similar with Sqon.

Resolution

I am hoping to see faster run times when a Sqon is first run and for each subsequent run. This improvement should take advantage of PHP's optimizations (i.e. opcode caching).

References

  1. https://github.com/php/php-src/blob/master/ext/phar/stream.c
  2. https://secure.php.net/manual/en/class.streamwrapper.php
  3. https://secure.php.net/manual/en/book.opcache.php

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions