News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
More source analysis with VLD
February 23, 2010 @ 10:49:26

Derick Rethans has been working on some updates to a tool he's developed, VLD, to make it more helpful and effecting in optimizing the opcodes in your scripts and find the dead opcodes and paths. He talks about these updates in this recent post.

Recently I've been working on some new functionality to visualise all the code paths that make up each function. These new routines sit on top of the routines that do dead code analysis. These new routines sit on top of the routines that do dead code analysis. Every branch instruction (such as if, but also for and foreach) is analysed and a list of branches is created. [...] Once all the branches and their links are found, another algorithm runs to figure out which paths can be created out of all the branches.

He illustrates with a few examples, showing both the command that was executed and the resulting output with the new path information of a simple test file using a "for" loop and an "if/else" conditional.

0 comments voice your opinion now!
vld opcode visualize dead path


blog comments powered by Disqus

Similar Posts

Abhinav Singh's Blog: PHP tokens & opcodes: 3 useful extensions for understanding the Zend Engine

PHPMaster.com: Data Structures for PHP Devs: Graphs

Matthew Turland's Blog: Zend_Form and Zend_Loader_PluginLoader SNAFU

Henrik Bjørnskov' Blog: Symfony2: Quick tip for your security configuration

Sebastian Bergmann's Blog: Visualizing Text Differences in PHPUnit 3


Community Events











Don't see your event here?
Let us know!


framework symfony2 application language performance hhvm security podcast introduction component hack example release project package facebook install database unittest composer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework