Download the PHP package k-samuel/optimize-me without Composer

On this page you can find all versions of the php package k-samuel/optimize-me. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package optimize-me

PHP Version Total Downloads Build and Test

OptimizeMe Challenge

Code optimization challenge for PHP developers.

PHP modified adaptation. Based on homework task for Golang educational project with Romanov Vasily “Technosphere Mail.ru Group” at Moscow State University. Lomonosov.

Introduction

Task for working with the xdebug profiler.

There is a Search method that parses the file and displays the necessary data. It doesn't fast enough. It is necessary to optimize the code of this method.

Target

Learn to work with xdebug profiler, find hot spots in the code, be able to build a profile CPU and memory consumption, optimize the code taking this information into account.

Task

Using xdebug profile optimize the search method. The source code of the method is located in the file src/Slow/Search.php, the new implementation should be written in the file src/Fast/Search.php.

You can run the benchmark in the root of the project directory php bench.php

To complete the task, need to optimize each param:

Install

Run composer create-project k-samuel/optimize-me

Benchmark

Run php bench.php

Note: Memory consumption statistics accessible only for PHP >= 8.2

Expected results

Try to get comparable (or better) results. Please note that performance is highly dependent on your hardware and results may vary.

PHP 8.2 + opcache + JIT, apple M2 Count Memory Best Time
Slow 250 2,856.453 kb 0.003882 s.
Fast 1536 516.797 kb 0.000645 s.

Useful materials


All versions of optimize-me with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package k-samuel/optimize-me contains the following files

Loading the files please wait ....