Closed
Bug 1164259
Opened 9 years ago
Closed 7 years ago
We shouldn't use $http for getting resultset information
Categories
(Tree Management :: Treeherder: Frontend, defect, P3)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1409103
People
(Reporter: wlach, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: perf)
Attachments
(1 file)
Just clearing my patch backlog.
Anyway, like the title says, we shouldn't do this. Even with asynchronous $http apply enabled, doing this results in us doing a bunch of spurious ingest cycles where nothing actually changes. If we're fetching 50 jobs, the overhead of this is substantial (4213ms in my tests on my Linux desktop).
Reporter | ||
Comment 1•9 years ago
|
||
This speeds things up a bunch (~4000ms on my machine) by avoiding a whack of useless digests when fetching lots of result sets. See PR for more details.
Attachment #8604933 -
Flags: review?(mdoglio)
Updated•9 years ago
|
Comment 2•9 years ago
|
||
I think this patch will break places like the similar jobs panel where we expect a digest cycle to run after the http request.
Also, some tests may stop working because the http mock service is integrated in $http afaik.
We should try to experiment with $scope.evalAsync() to run only one digest cycle when all the job requests complete (instead of 10).
Updated•9 years ago
|
Attachment #8604933 -
Flags: review?(mdoglio) → review-
Reporter | ||
Comment 3•9 years ago
|
||
We discussed this a bit on irc and I think determined that we should do evalAsync in resultsets_store after everything is processed.
However, having refactored things to do this I'm not seeing any performance improvements anymore. Maybe I need to look into this again or maybe this just isn't worth doing. Attached my wip to the PR if anyone wants to take a look, I am personally considering giving up on this approach...
Status: NEW → UNCONFIRMED
Ever confirmed: false
Reporter | ||
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 4•9 years ago
|
||
I'm not working on this. Not clear if it's worth it.
Assignee: wlachance → nobody
Updated•9 years ago
|
Priority: P2 → P3
Updated•7 years ago
|
Component: Treeherder → Treeherder: Frontend
Comment 5•7 years ago
|
||
Usages of $http will go away as part of bug 1409103.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•