src/Neutrino/Optimizer/Composer.php
public function optimizeMemory()
    {
        $this->composer->dumpautoload(false);

        $files      = $this->autoload->getFiles();
        $namespaces = $this->autoload->getNamespaces();
        $psr        = $this->autoload->getPsr4();
        $classes    = $this->autoload->getClassmap();

        $_namespaces = [];
        $_dirs       = [];
        foreach ($namespaces as $namespace => $directories) {
            $_namespaces[trim($namespace, '\\')] = $directories;
            foreach ($directories as $directory) {
                $_dirs[$directory] = $directory;
            }
        }
        foreach ($psr as $namespace => $dir) {
            $_namespaces[trim($namespace, '\\')] = $dir;
        }

        return $this->generateOutput($files, $_namespaces, $_dirs, $classes);
    }
public function optimizeMemory()
    {
        $this->composer->dumpautoload(false);

        $files      = $this->autoload->getFiles();
        $namespaces = $this->autoload->getNamespaces();
        $psr        = $this->autoload->getPsr4();
        $classes    = $this->autoload->getClassmap();

        $_namespaces = [];
        $_dirs       = [];
        foreach ($namespaces as $namespace => $directories) {
            $_namespaces[trim($namespace, '\\')] = $directories;
            foreach ($directories as $directory) {
                $_dirs[$directory] = $directory;
            }
        }
        foreach ($psr as $namespace => $dir) {
            $_namespaces[trim($namespace, '\\')] = $dir;
        }

        return $this->generateOutput($files, $_namespaces, $_dirs, $classes);
    }
Build an memory optimized autoloader

@return bool|int