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)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1409103

People

(Reporter: wlach, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

Attachments

(1 file)

49 bytes, text/x-github-pull-request
mdoglio
: review-
Details | Review
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).
Attached file PR
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)
Blocks: 1067846
Keywords: perf
Priority: -- → P2
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).
Attachment #8604933 - Flags: review?(mdoglio) → review-
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
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'm not working on this. Not clear if it's worth it.
Assignee: wlachance → nobody
Priority: P2 → P3
Component: Treeherder → Treeherder: Frontend
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.

Attachment

General

Created:
Updated:
Size: