Problem/Motivation
Url::fromRoute('', [], array('script' => &$scriptPath, 'prefix' => &$pathPrefix))->toString();
This is just wrong.
Proposed resolution
Try to fix it.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | interdiff.txt | 1.07 KB | dawehner |
| #14 | 2527846-14.patch | 4.58 KB | dawehner |
| #12 | interdiff.txt | 785 bytes | dawehner |
| #12 | 2527846-12.patch | 3.51 KB | dawehner |
| #10 | interdiff.txt | 618 bytes | dawehner |
Comments
Comment #1
wim leersAssigning to @nod_ to get his feedback; he has tried to remove it in the past.
Comment #2
mpdonadioI think one of the "get rid of url()" issues has some thoughts on this, too. I seem to recall spending some time on it w/o luck. I'll poke around.
Comment #3
dawehnerscriptPath was removed as part of #2362227: Replace all instances of current_path() so we are fine for that.
The other one could be fetched from the outbound path processors directly, maybe this is a bit better.
Comment #4
wim leersOh, hah! Yay :) One less thing to worry about :)
I like this idea a lot. Let's see if testbot likes it as much!
Comment #6
dawehnerMh, that result means, yes, it likes it.
Comment #8
dawehnerSome test fixes.
Comment #10
dawehnerMaybe this?
Comment #12
dawehnerFinally this should fix the test failures.
Comment #14
dawehnerForgot to add a new file
Comment #15
dawehner.
Comment #16
nod_I'm really not up to speed on how to get all that from the PHP so as long as it's gone and testbot is happy, I'm good with it.
Comment #17
fabianx commentedRTBC, very happy about the change.
Comment #18
dawehnerJust in case someone wants to, it would be interesting whether this also brings some performance benefit.
Comment #19
wim leersProfiled at
/contact. Wall time delta is not to be trusted (too much variance); the other deltas are steady. Saves 54 function calls.Comment #20
berdirWhat about just comparing this function.. There shouldn't be a lot of variance then.
Comment #21
wim leersI don't see the value of micro-profiling a function that's only called once per page load?
Comment #22
catchMore about interest than necessity I think - I posted a 'before' when I opened #2505055: Remove isFront from system_js_settings_alter().
Comment #23
berdirWhy would you not want to compare the actual function that is changing? There's no point in comparing the whole request if we know that nothing outside that function is changed.
And yes, I asked because I saw that issue that @catch created.
Comment #24
wim leersApologies, I didn't realize that it was taking 1.5 ms. Then micro profiling definitely makes sense.
Comment #25
dawehnerIncl. Wall Time (microsec) 103,127 101,138 -1,989 -1.9%This seems to be quite costly functions :)
Comment #26
alexpottWhy have we removed this? Ah because we don't need it since #2362227: Replace all instances of current_path() and it's an Drupal 8 only thing. I guess this is okay to remove without a CR.
Comment #27
alexpottDidn't mean to change the status.
Comment #28
dawehnerYeah exactly.
Comment #29
catchCommitted/pushed to 8.0.x, thanks!