Open mzhilyaev opened 10 years ago
Specifically this chunk of messages could be rolled into one worker.port.emit("message", {content: {topic: "ranking_data", data: StudyApp.controller.getRankedInterests()}}); worker.port.emit("message", {content: {topic: "dispatch_batch", data: StudyApp.controller.getNextDispatchBatch()}}); worker.port.emit("message", {content: {topic: "host_interests_data", data: StudyApp.controller.getHostComputedInterests()}}); worker.port.emit("message", {content: {topic: "coverage_data", data: StudyApp.controller.getCoverage()}});
Specifically this chunk of messages could be rolled into one worker.port.emit("message", {content: {topic: "ranking_data", data: StudyApp.controller.getRankedInterests()}}); worker.port.emit("message", {content: {topic: "dispatch_batch", data: StudyApp.controller.getNextDispatchBatch()}}); worker.port.emit("message", {content: {topic: "host_interests_data", data: StudyApp.controller.getHostComputedInterests()}}); worker.port.emit("message", {content: {topic: "coverage_data", data: StudyApp.controller.getCoverage()}});