Compare commits

..

No commits in common. "bbf46587b9813b84a4591355c9ce456d1aa4084e" and "88d20acfcf9eb2dfd5ea7ee055752adcada1d736" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View File

@ -14,7 +14,7 @@ async function executeTask() {
// stopTaskTimer()
if (taskPool.length > 0) {
let startSortTime = performance.now()
// sortTaskPool()
sortTaskPool()
let endSortTime = performance.now()
var requestNum = Math.min(taskPool.length, maxRequest)
const tasks = taskPool.splice(0, requestNum);
@ -140,7 +140,6 @@ function buildImageRequestTask(imageId,seriesId, config = {}) {
export default {
addTaskIntoPool,
executeTask,
sortTaskPool,
startTaskTimer,
stopTaskTimer,
loadAndCacheImagePlus,

View File

@ -646,15 +646,12 @@ export default {
loopLoad() {
if (this.imageList.length > 0) {
requestPoolManager.startTaskTimer()
this.imageList.map(image => {
requestPoolManager.loadAndCacheImagePlus(image.imageId, image.seriesId, image.priority).then(res => {
this.imageLoaded({ visitTaskId: this.visitTaskId, imageId: image.imageId }, res.data.string('x0020000e'))
})
})
requestPoolManager.sortTaskPool()
this.imageList = []
}
},