Skip to content

Feature request - notify about missing optimizer for built-in PHP functions #2468

@ondrejmirtes

Description

@ondrejmirtes

Let's say we want to write highly-efficient code. We rewrite code that initially existed in PHP and we want the Zephir counterpart to be as fast as possible. But Zephir currently does not have built-in optimizers for all PHP functions, only for some: https://github.com/zephir-lang/zephir/tree/development/src/Optimizers/FunctionCall

So if we use a function like array_last or https://www.php.net/manual/en/function.php-strip-whitespace.php, it's going to call back to PHP and it's going to be needlessly slower.

But it's hard to know about all unoptimized calls, that's why Zephir could notify about those, to see opportunities for optimization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions