You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 5, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 5, 2019. It is now read-only.
I think the biggest complaint on the difference between your guys vs leafo's is the speed performance. (For example: leafo/lessphp#535 (comment))
Would it be possible to maybe take a closer look at how leafo's repo handles performance in a better way than your guys? It would be awesome if you could use any tactics they did to improve your guys script even more!
I love the script so far guys, and all the hard work you are putting into it. I'm also just trying to help you guys look for any more ways to improve it and get more people to switch from leafo's.
+1 .. great lib with cool features.. cudos! performance is the only downside right now..
Tell us how we might help to track down the performance issue..
Performance is definitely a bit of a drag. I've been use xdebug to figure out what parts of the program are the slowest. The following report is from compiling bootstrap 3.0.3 without any caching.
Interesting. I think I will take a close look at some of the performance stuff too, to help you out @oyejorge. I'll do a pull request with any speed upgrades I can try to do.
In general, I definitely think performance upgrades should be a high priority though. This is probably the only thing that less.php is lacking in right now.
Ok, branch 1.6 [c1a6b46] vs master/1.6.1 [f1a0ac9] is around: PHP 5.3.14: 6.2s vs. 7.5 .. PHP 5.4.4: 4.3s vs. 5.2s .. (just tell me what branch/commit for further tests.. i'm checking out w/ git anyway..)
I wouldn't say I've stopped working on performance. I think there's room for more improvements, but I've hit a wall so I'm going to take a little break and come back with a clear head.
@phpquery, I still haven't gotten around to installing xhprof, could you post another screenshot like this one? Xdebug gives me similar information, but I like the comparison.
You're welcome.. i think it made sense if you jumped the hoop and installed xhprof(.io).. not that i'm not willing to run further test, no prob there, but the real thing could help you much more since you can drill down to the guts of each function/method.. or diffing 2 different runs and such.. etc.
Just to throw this out there, I just added hhvm to the travis.yml to see (1) if the tests would pass and (2) what kind of performance improvements we'd see. Good news on both. All of the tests passed and completed in about half the time. 6.1 seconds on hhvm vs 11.8 seconds with php 5.5
Not that I know of. I'm just looking at the time it takes travis-ci to complete the tests. Note: I'm not looking at the "Duration" time at the top of the page, but the "Time" at the bottom of the test results.
and is causing performance errors for other code since they are requiring it making the performance error for it too. I would say break down code that requires MatchReg and duplicate it which may results In improve performance.
Activity
phpquery commentedon Feb 3, 2014
+1 .. great lib with cool features.. cudos! performance is the only downside right now..
Tell us how we might help to track down the performance issue..
thx!
oyejorge commentedon Feb 3, 2014
Performance is definitely a bit of a drag. I've been use xdebug to figure out what parts of the program are the slowest. The following report is from compiling bootstrap 3.0.3 without any caching.

bluetidepro commentedon Feb 3, 2014
Interesting. I think I will take a close look at some of the performance stuff too, to help you out @oyejorge. I'll do a pull request with any speed upgrades I can try to do.
In general, I definitely think performance upgrades should be a high priority though. This is probably the only thing that
less.phpis lacking in right now.Thanks! :)
phpquery commentedon Feb 3, 2014
I ran a test with xhprof today.. compiling bootstrap 3.1.0
See the following (partial) screenshot (the fullpage screenshot is 5MB )..:
oyejorge commentedon Feb 3, 2014
Dang. So bootstrap is using
&:extendfunctionality now. WithBootstrap < 3.1, we were able to skip the extend visitor completely.
phpquery commentedon Feb 3, 2014
Do want me to run it with a specific bootstrap version in comparison?
phpquery commentedon Feb 3, 2014
Ok, with bootstrap 3.0.0 it's about half the time:
oyejorge commentedon Feb 4, 2014
Thanks, I would expect it to be about half, the code for
extendis pretty slow.use selector oelements to speed up extend matching #60
oyejorge commentedon Feb 8, 2014
@phpquery Would you mind testing out the latest code in the 1.6 branch? On my system, bootstrap 3.1 is taking about 5.5 seconds with the new code
phpquery commentedon Feb 8, 2014
Hm, no improvement here i'm afraid.. i checked out tag/1.6.1 vs. master several times.
What were your local compile times with tag/1.6.1?
i'm testing w/ bootstrap 3.1.0 parsing the central bootstrap.less file.. w/ this code:
my system/setup:
OSX 10.6.8 @ MBP 2.2 i7 w/ SSD
MAMP Pro 2.1.1: PHP 5.3.14, no Cache
phpquery commentedon Feb 8, 2014
followup: w/ PHP 5.4.4 i'm around 5.2 seconds.. ;)
(however no differences between 1.6.1 and master..)
oyejorge commentedon Feb 8, 2014
Sorry, it's not tagged yet, it's just the current 1.6 branch. Here's the 1.6 branch download if it helps
phpquery commentedon Feb 8, 2014
Ok, branch 1.6 [c1a6b46] vs master/1.6.1 [f1a0ac9] is around:
PHP 5.3.14: 6.2s vs. 7.5 ..
PHP 5.4.4: 4.3s vs. 5.2s ..
(just tell me what branch/commit for further tests.. i'm checking out w/ git anyway..)
oyejorge commentedon Feb 13, 2014
Some more performance improvements! Everything is up-to-date in the master branch.
jdlx commentedon Feb 13, 2014
better again.. cudos:
bluetidepro commentedon Feb 19, 2014
Getting much better, are you still looking into more ways to speed this up? :)
oyejorge commentedon Feb 20, 2014
I wouldn't say I've stopped working on performance. I think there's room for more improvements, but I've hit a wall so I'm going to take a little break and come back with a clear head.
@phpquery, I still haven't gotten around to installing xhprof, could you post another screenshot like this one? Xdebug gives me similar information, but I like the comparison.
jdlx commentedon Feb 20, 2014
@oyejorge here you go.. this is a run with ba0f33c and PHP 5.4.4 :
(setup as in #issuecomment-34522266)
(sry, no full screenshot right now.. awesome screenshot is passing out on a fullscreen one at the moment..)
jdlx commentedon Feb 20, 2014
ps.: if you want me to run tests via your included test suite let me know about the details how/where/what..
oyejorge commentedon Feb 20, 2014
That's perfect, thank you. I get the feeling those results are actually more accurate than what I'm getting with xdebug.
jdlx commentedon Feb 20, 2014
You're welcome.. i think it made sense if you jumped the hoop and installed xhprof(.io).. not that i'm not willing to run further test, no prob there, but the real thing could help you much more since you can drill down to the guts of each function/method.. or diffing 2 different runs and such.. etc.
oyejorge commentedon Mar 2, 2014
Just to throw this out there, I just added hhvm to the travis.yml to see (1) if the tests would pass and (2) what kind of performance improvements we'd see. Good news on both. All of the tests passed and completed in about half the time. 6.1 seconds on hhvm vs 11.8 seconds with php 5.5
jdlx commentedon Mar 4, 2014
does hhvm have specific tools to evaluate performance?
oyejorge commentedon Mar 5, 2014
Not that I know of. I'm just looking at the time it takes travis-ci to complete the tests. Note: I'm not looking at the "Duration" time at the top of the page, but the "Time" at the bottom of the test results.
danyj commentedon Mar 17, 2014
Just discovered , who ever is adding/compiling fontawesome with bootstrap it adds another 3sec to compile process.
oyejorge commentedon Jun 20, 2015
I know comparing run times of different php versions on travis-ci isn't the best way to judge performance but:
php 5.6
php7
paladox commentedon Oct 31, 2015
Why not use https://blackfire.io/ to help track down and improve performance.
paladox commentedon Oct 31, 2015
It shows MatchReg as being the one causing the performance errors https://camo.githubusercontent.com/27e0815b88a60d1770f6b8b39c8c61d48993fd73/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363534303439342f323037303635302f35616162323963632d386431652d313165332d386430392d6535363033643032343438662e706e67
and is causing performance errors for other code since they are requiring it making the performance error for it too. I would say break down code that requires MatchReg and duplicate it which may results In improve performance.